From e09f5405d850e0e3a8108aa87abe620a010bb867 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Mon, 6 May 2024 15:53:47 +0200 Subject: [PATCH] oops --- kubi/shaders/world.wgsl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kubi/shaders/world.wgsl b/kubi/shaders/world.wgsl index 2577187..df7a7b3 100644 --- a/kubi/shaders/world.wgsl +++ b/kubi/shaders/world.wgsl @@ -28,7 +28,7 @@ fn vs_main( out.normal = in.normal; out.tex_index = in.tex_index; out.clip_position = camera.view_proj * vec4(in.position, 1.0); - out + return out; } @group(0) @binding(0) @@ -41,7 +41,7 @@ var s_diffuse: sampler; fn fs_main(in: VertexOutput) -> @location(0) vec4 { let color: vec4 = textureSample(t_diffuse, s_diffuse, in.uv, in.tex_index); if (color.a == 0.) { - discard + discard; } - color + return color; }