From e8c93463b2ae5114f0c88e768e5625abac9d5a50 Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 27 Dec 2024 12:04:51 +1100 Subject: 3D maths --- sc/sc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sc/sc.cpp') diff --git a/sc/sc.cpp b/sc/sc.cpp index e806dd4..0f61fdf 100644 --- a/sc/sc.cpp +++ b/sc/sc.cpp @@ -167,6 +167,12 @@ struct Desc { return { 12, 16 }; case svariable_type_vec4: return { 16, 16 }; + case svariable_type_mat2: + return { 16, 16 }; + case svariable_type_mat3: + return { 36, 16 }; + case svariable_type_mat4: + return { 64, 16 }; } assert(0); return { 0, 0 }; -- cgit v1.2.3-54-g00ecf