From 472c2258dbeca000a454ea1781f09df63477563e Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 28 Feb 2026 02:39:04 +0100 Subject: replace wgsl type: vec4 -> vec4f .. --- common/shaders/camera_common.wgsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/shaders/camera_common.wgsl') diff --git a/common/shaders/camera_common.wgsl b/common/shaders/camera_common.wgsl index c7daebf..846d052 100644 --- a/common/shaders/camera_common.wgsl +++ b/common/shaders/camera_common.wgsl @@ -1,7 +1,7 @@ // Camera parameters and helpers for SDF raymarching effects struct CameraParams { - inv_view: mat4x4, + inv_view: mat4x4f, fov: f32, near_plane: f32, far_plane: f32, @@ -14,7 +14,7 @@ struct Ray { } // Generate camera ray for given UV coordinates (-1 to 1) -fn getCameraRay(cam: CameraParams, uv: vec2) -> Ray { +fn getCameraRay(cam: CameraParams, uv: vec2f) -> Ray { let cam_pos = vec3f(cam.inv_view[3].x, cam.inv_view[3].y, cam.inv_view[3].z); // Compute ray direction from FOV and aspect ratio -- cgit v1.2.3