summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-27 12:04:51 +1100
committerquou <quou@disroot.org>2024-12-27 12:04:51 +1100
commite8c93463b2ae5114f0c88e768e5625abac9d5a50 (patch)
tree3fc7b774eb9bf172fbcb95bb3a410093a5b5b856 /sc
parent0d2179f6beb7e11632b76dac0615e593cafaaf00 (diff)
3D maths
Diffstat (limited to 'sc')
-rw-r--r--sc/sc.cpp6
1 files changed, 6 insertions, 0 deletions
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 };