Skip to content

Commit c862ccd

Browse files
committed
refactor: clean up comments in Holo shader
1 parent 38400fe commit c862ccd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/Holo/shader.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,16 @@ fn makeUVRotationMatrix(g: f32, h: f32) -> mat3x3<f32> {
6565
6666
@fragment
6767
fn 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

0 commit comments

Comments
 (0)