Fixed false error from WGSL Plugin
This commit is contained in:
parent
e4e0c3078f
commit
8ce9493d00
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user