Skip to content

Commit dde8518

Browse files
authored
custom_material.vert: gl_InstanceIndex includes gl_BaseInstance (#9326)
Fixes shader_material_glsl on DX12 too.
1 parent c6a1bf0 commit dde8518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/shaders/custom_material.vert

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ layout(set = 2, binding = 0) readonly buffer _Meshes {
3333
void main() {
3434
v_Uv = Vertex_Uv;
3535
gl_Position = ViewProj
36-
* Meshes[gl_BaseInstance + gl_InstanceIndex].Model
36+
* Meshes[gl_InstanceIndex].Model
3737
* vec4(Vertex_Position, 1.0);
3838
}

0 commit comments

Comments
 (0)