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:
Allen Pestaluky 2023-05-23 16:17:45 -04:00
parent f581f21dd6
commit 51f0e36509
1 changed files with 4 additions and 0 deletions

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;
}