Merge pull request #47582 from clayjohn/GLES3-fix-multimesh-modulate
Fix multimesh being colored by other nodes GLES3
This commit is contained in:
commit
e9efc349ac
1 changed files with 2 additions and 0 deletions
|
@ -906,6 +906,8 @@ void RasterizerCanvasGLES3::render_batches(Item *p_current_clip, bool &r_reclip,
|
||||||
amount = multi_mesh->size;
|
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++) {
|
for (int j = 0; j < mesh_data->surfaces.size(); j++) {
|
||||||
RasterizerStorageGLES3::Surface *s = mesh_data->surfaces[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
|
// 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
|
||||||
|
|
Loading…
Reference in a new issue