summaryrefslogtreecommitdiff
path: root/demo/Node.lua
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-11-30 13:28:20 -0600
committersanine-a <sanine.not@pm.me>2020-11-30 13:28:20 -0600
commitbe49795636e5a9ede3742d077701f48e9316e121 (patch)
treeba82da725b991074af858e967c2a7adedfc2c544 /demo/Node.lua
parent352dc513efa7cb100acb03d0a991010234e04f12 (diff)
fix bug in glm binding memory allocators
Diffstat (limited to 'demo/Node.lua')
-rw-r--r--demo/Node.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/demo/Node.lua b/demo/Node.lua
index 300679c..5af745b 100644
--- a/demo/Node.lua
+++ b/demo/Node.lua
@@ -6,7 +6,7 @@ local Node = {}
Node.prototype = {}
Node.prototype.updateTransform = function(self)
- honey.cglm.mat4.identity(self.transform.array)
+ self.transform:eye()
self.transform:translate(self.position)
@@ -87,7 +87,8 @@ Node.new = function(parent, position, rotation, scale)
parent.children[index + 1] = node
end
- node.transform = Matrix.Mat4.eye()
+ node.transform = honey.glm.mat4()
+ node.transform:eye()
node:updateTransform()
return node