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 .. --- workspaces/main/shaders/scene1.wgsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'workspaces/main/shaders/scene1.wgsl') diff --git a/workspaces/main/shaders/scene1.wgsl b/workspaces/main/shaders/scene1.wgsl index 035f2e9..291173f 100644 --- a/workspaces/main/shaders/scene1.wgsl +++ b/workspaces/main/shaders/scene1.wgsl @@ -36,7 +36,7 @@ fn render0(ray: Ray) -> vec3f { col += sunCol * 0.00005 / (sf * sf); /* - let tp1 = rayPlane(ray, vec4(0.0, -1.0, 0.0, 6.0)); + let tp1 = rayPlane(ray, vec4f(0.0, -1.0, 0.0, 6.0)); if (tp1 > 0.0) { let pos = ray.origin + tp1 * ray.direction; let pp = pos.xz; @@ -161,5 +161,5 @@ fn render1(ray: Ray) -> vec3f { var col = render1(ray); col = aces_approx(col); col = sRGB(col); - return vec4(col, 1.0); + return vec4f(col, 1.0); } -- cgit v1.2.3