Skip to content

Commit 1f88f37

Browse files
committed
parallax mapping fix
1 parent 0d5be56 commit 1f88f37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/bevy_pbr/src/render/parallax_mapping.wgsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ fn parallaxed_uv(
2121
max_layer_count: f32,
2222
max_steps: u32,
2323
// The original interpolated uv
24-
uv: vec2<f32>,
24+
original_uv: vec2<f32>,
2525
// The vector from the camera to the fragment at the surface in tangent space
2626
Vt: vec3<f32>,
2727
) -> vec2<f32> {
2828
if max_layer_count < 1.0 {
29-
return uv;
29+
return original_uv;
3030
}
31-
var uv = uv;
31+
var uv = original_uv;
3232

3333
// Steep Parallax Mapping
3434
// ======================

0 commit comments

Comments
 (0)