custom_material.vert: gl_InstanceIndex includes gl_BaseInstance (#9326)
Fixes shader_material_glsl on DX12 too.
This commit is contained in:
		
							parent
							
								
									c6a1bf063b
								
							
						
					
					
						commit
						dde8518f6f
					
				| @ -33,6 +33,6 @@ layout(set = 2, binding = 0) readonly buffer _Meshes { | ||||
| void main() { | ||||
|     v_Uv = Vertex_Uv; | ||||
|     gl_Position = ViewProj | ||||
|         * Meshes[gl_BaseInstance + gl_InstanceIndex].Model | ||||
|         * Meshes[gl_InstanceIndex].Model | ||||
|         * vec4(Vertex_Position, 1.0); | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Robert Swain
						Robert Swain