Fix shader_instancing example (#9448)

# Objective

- Fix shader compilation issue in `shader_instancing` example.

## Solution

- Fix typo in `instancing.wgsl`
This commit is contained in:
James O'Brien 2023-08-15 00:28:45 -07:00 committed by GitHub
parent 0a11af9375
commit 62ae660357
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;