Fixed issues with blend modes in OpenGL 3 renderer
Added uses_blend_alpha = true for ADD, SUBTRACT, and MULTIPLY blend modes to match the other renderers Fixes #76334
This commit is contained in:
parent
f581f21dd6
commit
51f0e36509
|
@ -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 New Issue