summaryrefslogtreecommitdiff
path: root/honey/mat4.lua
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-03-16 12:12:39 -0500
committersanine <sanine.not@pm.me>2023-03-16 12:12:39 -0500
commitd94d9fb122e42264eca20bb037fe8a82290bd3e2 (patch)
tree7cb5b0ffd657ba69e193b4f2af6f1ddd3ec75ed2 /honey/mat4.lua
parent7516044247663dabccc7db110703cfcf8545d95f (diff)
implement ecs node cascading
Diffstat (limited to 'honey/mat4.lua')
-rw-r--r--honey/mat4.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/honey/mat4.lua b/honey/mat4.lua
index a97129c..8ea73d4 100644
--- a/honey/mat4.lua
+++ b/honey/mat4.lua
@@ -57,6 +57,13 @@ end
setmetatable(Mat4, {__call=Mat4.new})
+function Mat4.Identity()
+ local m = Mat4()
+ m:identity()
+ return m
+end
+
+
function Mat4.__index(self, key)
if type(key) == "number" then
return RowLookup(key, self.data)