diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-28 02:39:04 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-28 02:39:04 +0100 |
| commit | 472c2258dbeca000a454ea1781f09df63477563e (patch) | |
| tree | 98ac75c3824f19f4a598a807b3cb6aa13e8cb0c3 /workspaces/main/shaders/scene1.wgsl | |
| parent | 1c5a9fb7b8c704a59ec58894adf46d73d1615072 (diff) | |
replace wgsl type: vec4<f32> -> vec4f ..
Diffstat (limited to 'workspaces/main/shaders/scene1.wgsl')
| -rw-r--r-- | workspaces/main/shaders/scene1.wgsl | 4 |
1 files changed, 2 insertions, 2 deletions
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<f32>(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<f32>(col, 1.0); + return vec4f(col, 1.0); } |
