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 5617da6 commit b8e9292Copy full SHA for b8e9292
crates/bevy_pbr/src/render/parallax_mapping.wgsl
@@ -41,8 +41,8 @@ fn parallaxed_uv(
41
var current_layer_height = 0.0;
42
var current_height = sample_depth_map(uv);
43
44
- let int_max_layer_count = i32(max_layer_count);
45
- for (var i: i32 = 0; i <= int_max_layer_count; i++) {
+ // This at most runs layer_count times
+ while true {
46
if (current_height <= current_layer_height) {
47
break;
48
}
0 commit comments