We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c87b0d2 commit 9a4f1d8Copy full SHA for 9a4f1d8
shaders/rust/shadowmappingcascade/scene.frag.spv
144 Bytes
shaders/rust/shadowmappingcascade/scene/src/lib.rs
@@ -141,11 +141,9 @@ pub fn main_fs(
141
let mut cascade_index = 0u32;
142
if in_view_pos.z < ubo.cascade_splits.x {
143
cascade_index = 1;
144
- }
145
- if in_view_pos.z < ubo.cascade_splits.y {
+ } else if in_view_pos.z < ubo.cascade_splits.y {
146
cascade_index = 2;
147
148
- if in_view_pos.z < ubo.cascade_splits.z {
+ } else if in_view_pos.z < ubo.cascade_splits.z {
149
cascade_index = 3;
150
}
151
0 commit comments