Merge pull request #84585 from clayjohn/GL-instance-id

Properly rename ``INSTANCE_ID`` and ``VERTEX_ID`` in canvas item shaders in the compatibility backend
This commit is contained in:
Rémi Verschelde 2023-11-08 19:09:59 +01:00
commit 2cfb5ff23a
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 2 deletions

View File

@ -1157,8 +1157,8 @@ MaterialStorage::MaterialStorage() {
actions.renames["SCREEN_PIXEL_SIZE"] = "screen_pixel_size"; actions.renames["SCREEN_PIXEL_SIZE"] = "screen_pixel_size";
actions.renames["FRAGCOORD"] = "gl_FragCoord"; actions.renames["FRAGCOORD"] = "gl_FragCoord";
actions.renames["POINT_COORD"] = "gl_PointCoord"; actions.renames["POINT_COORD"] = "gl_PointCoord";
actions.renames["INSTANCE_ID"] = "gl_InstanceIndex"; actions.renames["INSTANCE_ID"] = "gl_InstanceID";
actions.renames["VERTEX_ID"] = "gl_VertexIndex"; actions.renames["VERTEX_ID"] = "gl_VertexID";
actions.renames["LIGHT_POSITION"] = "light_position"; actions.renames["LIGHT_POSITION"] = "light_position";
actions.renames["LIGHT_DIRECTION"] = "light_direction"; actions.renames["LIGHT_DIRECTION"] = "light_direction";