summaryrefslogtreecommitdiff
path: root/demo/MeshInstance.lua
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-12-04 22:23:02 -0600
committersanine-a <sanine.not@pm.me>2020-12-04 22:23:02 -0600
commitc5fd6a98d29c8790c266da2c6b6db2ab173c3064 (patch)
treed1a6898ced92084420fbfb012873b4ead14be08e /demo/MeshInstance.lua
parente767e1ff9d81f8a76196caab91d9b6b4bbe0b30e (diff)
add SignalManager.lua and revert to old Node.lua
Diffstat (limited to 'demo/MeshInstance.lua')
-rw-r--r--demo/MeshInstance.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/demo/MeshInstance.lua b/demo/MeshInstance.lua
index eceec5d..3e879e1 100644
--- a/demo/MeshInstance.lua
+++ b/demo/MeshInstance.lua
@@ -1,7 +1,9 @@
+local Node = require('Node')
+
local MeshInstance = {}
MeshInstance.prototype = {}
-setmetatable(MeshInstance.prototype, { __index = honey.nodeMetatable.__index })
+setmetatable(MeshInstance.prototype, { __index = Node.prototype })
MeshInstance.prototype.draw = function(self, camera, shader)
local shader = shader or self.shader
@@ -18,7 +20,7 @@ MeshInstance.mt.__index = MeshInstance.prototype
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MeshInstance.new = function(parent, position, rotation, scale, mesh, shader)
- local meshinstance = honey.node(parent, position, rotation, scale)
+ local meshinstance = Node.new(parent, position, rotation, scale)
meshinstance.mesh = mesh
meshinstance.shader = shader