summaryrefslogtreecommitdiff
path: root/demo/MeshInstance.lua
diff options
context:
space:
mode:
Diffstat (limited to 'demo/MeshInstance.lua')
-rw-r--r--demo/MeshInstance.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/demo/MeshInstance.lua b/demo/MeshInstance.lua
index b12edba..eceec5d 100644
--- a/demo/MeshInstance.lua
+++ b/demo/MeshInstance.lua
@@ -1,9 +1,7 @@
-local Node = require('Node')
-
local MeshInstance = {}
MeshInstance.prototype = {}
-setmetatable(MeshInstance.prototype, { __index = Node.prototype})
+setmetatable(MeshInstance.prototype, { __index = honey.nodeMetatable.__index })
MeshInstance.prototype.draw = function(self, camera, shader)
local shader = shader or self.shader
@@ -20,7 +18,7 @@ MeshInstance.mt.__index = MeshInstance.prototype
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MeshInstance.new = function(parent, position, rotation, scale, mesh, shader)
- local meshinstance = Node.new(parent, position, rotation, scale)
+ local meshinstance = honey.node(parent, position, rotation, scale)
meshinstance.mesh = mesh
meshinstance.shader = shader