summaryrefslogtreecommitdiff
path: root/common/shaders/math/utils.wgsl
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-28 02:39:04 +0100
committerskal <pascal.massimino@gmail.com>2026-02-28 02:39:04 +0100
commit472c2258dbeca000a454ea1781f09df63477563e (patch)
tree98ac75c3824f19f4a598a807b3cb6aa13e8cb0c3 /common/shaders/math/utils.wgsl
parent1c5a9fb7b8c704a59ec58894adf46d73d1615072 (diff)
replace wgsl type: vec4<f32> -> vec4f ..
Diffstat (limited to 'common/shaders/math/utils.wgsl')
-rw-r--r--common/shaders/math/utils.wgsl4
1 files changed, 2 insertions, 2 deletions
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<f32> {
+fn rot(a: f32) -> mat2x2f {
let c = cos(a);
let s = sin(a);
- return mat2x2<f32>(c, s, -s, c);
+ return mat2x2f(c, s, -s, c);
}
// Fast approximation of tanh.