From d94d9fb122e42264eca20bb037fe8a82290bd3e2 Mon Sep 17 00:00:00 2001 From: sanine Date: Thu, 16 Mar 2023 12:12:39 -0500 Subject: implement ecs node cascading --- honey/mat4.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'honey/mat4.lua') 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) -- cgit v1.2.1