From 0dc53e033bda3ae95f89b2a3973c938a234b895f Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Tue, 18 Jul 2023 02:41:34 +0200 Subject: [PATCH] upd --- kubi/shaders/world.wgsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubi/shaders/world.wgsl b/kubi/shaders/world.wgsl index d79937c..2bd7a07 100644 --- a/kubi/shaders/world.wgsl +++ b/kubi/shaders/world.wgsl @@ -10,7 +10,7 @@ struct VertexInput { @location(0) position: vec3, @location(1) normal: vec3, @location(2) uv: vec2, - @location(3) tex_index: vec2, + @location(3) tex_index: u32, } struct VertexOutput { @@ -24,7 +24,7 @@ fn vs_main( ) -> VertexOutput { var out: VertexOutput; out.tex_coords = model.tex_coords; - out.clip_position = camera.view_proj * vec4(model.position, 1.0); // 2. + out.clip_position = camera.view_proj * vec4(model.position, 1.0); return out; }