Skip to content

Commit

Permalink
Merge pull request #47582 from clayjohn/GLES3-fix-multimesh-modulate
Browse files Browse the repository at this point in the history
Fix multimesh being colored by other nodes GLES3
  • Loading branch information
akien-mga authored Apr 28, 2021
2 parents 8ec14c9 + 92bf493 commit e9efc34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gles3/rasterizer_canvas_gles3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,8 @@ void RasterizerCanvasGLES3::render_batches(Item *p_current_clip, bool &r_reclip,
amount = multi_mesh->size;
}

glVertexAttrib4f(VS::ARRAY_COLOR, 1.0, 1.0, 1.0, 1.0);

for (int j = 0; j < mesh_data->surfaces.size(); j++) {
RasterizerStorageGLES3::Surface *s = mesh_data->surfaces[j];
// materials are ignored in 2D meshes, could be added but many things (ie, lighting mode, reading from screen, etc) would break as they are not meant be set up at this point of drawing
Expand Down

0 comments on commit e9efc34

Please sign in to comment.