Merge pull request #77409 from allenwp/OpenGL3-Blend-Issue76334
Fixed issues with blend modes in OpenGL 3 renderer
This commit is contained in:
commit
2ab0f17f3b
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue