Skip to content

Commit

Permalink
Merge pull request #77409 from allenwp/OpenGL3-Blend-Issue76334
Browse files Browse the repository at this point in the history
Fixed issues with blend modes in OpenGL 3 renderer
  • Loading branch information
akien-mga committed May 24, 2023
2 parents b7032b5 + 51f0e36 commit 2ab0f17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gles3/storage/material_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2ab0f17

Please sign in to comment.