diff options
Diffstat (limited to 'common/shaders/math/utils.wgsl')
| -rw-r--r-- | common/shaders/math/utils.wgsl | 4 |
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. |
