diff options
Diffstat (limited to 'src/shaders/skybox.wgsl')
| -rw-r--r-- | src/shaders/skybox.wgsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shaders/skybox.wgsl b/src/shaders/skybox.wgsl index 075eeb6..652743f 100644 --- a/src/shaders/skybox.wgsl +++ b/src/shaders/skybox.wgsl @@ -10,7 +10,7 @@ fn fs_main(in: VertexOutput) -> @location(0) vec4f { // Convert UV to NDC let ndc_x = in.uv.x * 2.0 - 1.0; - let ndc_y = (1.0 - in.uv.y) * 2.0 - 1.0; // Un-flip Y for NDC (Y-up) + let ndc_y = in.uv.y * 2.0 - 1.0; // uv is y-up, matches NDC directly // Unproject to find world direction // We want the direction from camera to the far plane at this pixel |
