From 62ae660357cb911dda15318335a6804ac38a97e3 Mon Sep 17 00:00:00 2001 From: James O'Brien Date: Tue, 15 Aug 2023 00:28:45 -0700 Subject: [PATCH] Fix shader_instancing example (#9448) # Objective - Fix shader compilation issue in `shader_instancing` example. ## Solution - Fix typo in `instancing.wgsl` --- assets/shaders/instancing.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/shaders/instancing.wgsl b/assets/shaders/instancing.wgsl index a785b088be..52e7d9696a 100644 --- a/assets/shaders/instancing.wgsl +++ b/assets/shaders/instancing.wgsl @@ -24,7 +24,7 @@ fn vertex(vertex: Vertex) -> VertexOutput { // index in the Mesh array. This index could be passed in via another // uniform instead but it's unnecessary for the example. out.clip_position = mesh_position_local_to_clip( - get_model_matrix(0), + get_model_matrix(0u), vec4(position, 1.0) ); out.color = vertex.i_color;