Skip to content

Commit

Permalink
Fix shader_instancing example (#9448)
Browse files Browse the repository at this point in the history
# Objective

- Fix shader compilation issue in `shader_instancing` example.

## Solution

- Fix typo in `instancing.wgsl`
  • Loading branch information
james-j-obrien authored Aug 15, 2023
1 parent 0a11af9 commit 62ae660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/shaders/instancing.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -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<f32>(position, 1.0)
);
out.color = vertex.i_color;
Expand Down

0 comments on commit 62ae660

Please sign in to comment.