Fixed false error from WGSL Plugin

This commit is contained in:
Verox001 2025-05-07 20:21:50 +02:00
parent e4e0c3078f
commit 8ce9493d00

View File

@ -131,7 +131,7 @@ fn fs_main(input: VSOutput) -> @location(0) vec4<f32> {
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;
}