mirror of
https://github.com/godotengine/godot
synced 2024-09-05 05:08:27 +00:00
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 a new issue