Skip to content

Commit

Permalink
Merge pull request #48151 from lawnjelly/ewok_gles3_light_modulate
Browse files Browse the repository at this point in the history
Batching - GLES3 fix light pass modulates
  • Loading branch information
akien-mga authored Apr 24, 2021
2 parents e572be0 + 35c5ccc commit 5942a70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/gles3/rasterizer_canvas_gles3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,11 @@ void RasterizerCanvasGLES3::render_joined_item(const BItemJoined &p_bij, RenderI
Light *light = r_ris.item_group_light;
bool light_used = false;
VS::CanvasLightMode mode = VS::CANVAS_LIGHT_MODE_ADD;
state.canvas_item_modulate = p_ci->final_modulate; // remove the canvas modulate

// we leave this set to 1, 1, 1, 1 if using software because the colors are baked into the vertices
if (p_bij.is_single_item()) {
state.canvas_item_modulate = p_ci->final_modulate; // remove the canvas modulate
}

while (light) {

Expand Down

0 comments on commit 5942a70

Please sign in to comment.