Merge pull request #77409 from allenwp/OpenGL3-Blend-Issue76334

Fixed issues with blend modes in OpenGL 3 renderer
This commit is contained in:
Rémi Verschelde 2023-05-24 18:36:06 +02:00
commit 2ab0f17f3b
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -3452,6 +3452,10 @@ void SceneShaderData::set_code(const String &p_code) {
blend_mode = BLEND_MODE_ALPHA_TO_COVERAGE;
}
if (blend_mode == BLEND_MODE_ADD || blend_mode == BLEND_MODE_SUB || blend_mode == BLEND_MODE_MUL) {
uses_blend_alpha = true; // Force alpha used because of blend.
}
valid = true;
}