File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -65,18 +65,16 @@ fn makeUVRotationMatrix(g: f32, h: f32) -> mat3x3<f32> {
6565
6666@fragment
6767fn main(@location(0) ndc: vec2<f32>) -> @location(0) vec4<f32> {
68- // --- Match the input/UV handling from the simple shader ---
69- // NDC (-1..1) -> UV (0..1)
7068 let uv = ndc * 0.5 + 0.5;
7169
7270 // Flip Y (textures are typically top-down)
7371 let flippedUV = vec2<f32>(uv.x, 1.0 - uv.y);
7472
75- // Parallax offset (same as your first shader)
73+ // Parallax offset
7674 let tiltOffset = uniforms.tilt.xy * PARALLAX_SCALE;
7775 let parallaxUV = flippedUV + tiltOffset;
7876
79- // ---- Holographic space mapping (touch-based parallax) ----
77+ // ---- Holographic space mapping ----
8078 let aspect = uniforms.screenProps.z;
8179 let touchTilt = uniforms.tilt.xy;
8280
You can’t perform that action at this time.
0 commit comments