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/math/utils.wgsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/shaders/math/utils.wgsl') diff --git a/common/shaders/math/utils.wgsl b/common/shaders/math/utils.wgsl index 85f0bdf..c75cb66 100644 --- a/common/shaders/math/utils.wgsl +++ b/common/shaders/math/utils.wgsl @@ -1,10 +1,10 @@ // General-purpose math utility functions. // Returns a 2x2 rotation matrix. -fn rot(a: f32) -> mat2x2 { +fn rot(a: f32) -> mat2x2f { let c = cos(a); let s = sin(a); - return mat2x2(c, s, -s, c); + return mat2x2f(c, s, -s, c); } // Fast approximation of tanh. -- cgit v1.2.3