mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
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
@ -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
Block a user