From 8ce9493d00d75190f897d3b6d48b93a461819532 Mon Sep 17 00:00:00 2001 From: Verox001 Date: Wed, 7 May 2025 20:21:50 +0200 Subject: [PATCH] Fixed false error from WGSL Plugin --- solar_engine/src/shader.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solar_engine/src/shader.wgsl b/solar_engine/src/shader.wgsl index 62a0c3c..2950e7f 100644 --- a/solar_engine/src/shader.wgsl +++ b/solar_engine/src/shader.wgsl @@ -131,7 +131,7 @@ fn fs_main(input: VSOutput) -> @location(0) vec4 { let light_dir = normalize(light.position - input.world_pos); let diff = max(dot(input.normal, light_dir), 0.0); - switch light.light_type { + switch (light.light_type) { case 0u: { // Directional light_contrib = light.color * light.intensity * diff; }