summaryrefslogtreecommitdiff
path: root/common/shaders/skybox.wgsl
diff options
context:
space:
mode:
Diffstat (limited to 'common/shaders/skybox.wgsl')
-rw-r--r--common/shaders/skybox.wgsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/shaders/skybox.wgsl b/common/shaders/skybox.wgsl
index d280390..075eeb6 100644
--- a/common/shaders/skybox.wgsl
+++ b/common/shaders/skybox.wgsl
@@ -7,14 +7,14 @@
@group(0) @binding(2) var<uniform> globals: GlobalUniforms;
@fragment
-fn fs_main(in: VertexOutput) -> @location(0) vec4<f32> {
+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)
// Unproject to find world direction
// We want the direction from camera to the far plane at this pixel
- let clip_pos = vec4<f32>(ndc_x, ndc_y, 1.0, 1.0);
+ let clip_pos = vec4f(ndc_x, ndc_y, 1.0, 1.0);
let world_pos_h = globals.inv_view_proj * clip_pos;
let world_pos = world_pos_h.xyz / world_pos_h.w;