Skip to content

Commit

Permalink
Merge pull request #84585 from clayjohn/GL-instance-id
Browse files Browse the repository at this point in the history
Properly rename ``INSTANCE_ID`` and ``VERTEX_ID`` in canvas item shaders in the compatibility backend
  • Loading branch information
akien-mga committed Nov 8, 2023
2 parents f0c52c0 + 9c5adac commit 2cfb5ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gles3/storage/material_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1157,8 +1157,8 @@ MaterialStorage::MaterialStorage() {
actions.renames["SCREEN_PIXEL_SIZE"] = "screen_pixel_size";
actions.renames["FRAGCOORD"] = "gl_FragCoord";
actions.renames["POINT_COORD"] = "gl_PointCoord";
actions.renames["INSTANCE_ID"] = "gl_InstanceIndex";
actions.renames["VERTEX_ID"] = "gl_VertexIndex";
actions.renames["INSTANCE_ID"] = "gl_InstanceID";
actions.renames["VERTEX_ID"] = "gl_VertexID";

actions.renames["LIGHT_POSITION"] = "light_position";
actions.renames["LIGHT_DIRECTION"] = "light_direction";
Expand Down

0 comments on commit 2cfb5ff

Please sign in to comment.