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 0d5be56 commit 1f88f37Copy full SHA for 1f88f37
crates/bevy_pbr/src/render/parallax_mapping.wgsl
@@ -21,14 +21,14 @@ fn parallaxed_uv(
21
max_layer_count: f32,
22
max_steps: u32,
23
// The original interpolated uv
24
- uv: vec2<f32>,
+ original_uv: vec2<f32>,
25
// The vector from the camera to the fragment at the surface in tangent space
26
Vt: vec3<f32>,
27
) -> vec2<f32> {
28
if max_layer_count < 1.0 {
29
- return uv;
+ return original_uv;
30
}
31
- var uv = uv;
+ var uv = original_uv;
32
33
// Steep Parallax Mapping
34
// ======================
0 commit comments