summaryrefslogtreecommitdiff
path: root/demo/main.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/main.lua
parente767e1ff9d81f8a76196caab91d9b6b4bbe0b30e (diff)
add SignalManager.lua and revert to old Node.lua
Diffstat (limited to 'demo/main.lua')
-rw-r--r--demo/main.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/demo/main.lua b/demo/main.lua
index 3382d8d..d0695a6 100644
--- a/demo/main.lua
+++ b/demo/main.lua
@@ -1,3 +1,4 @@
+local Node = require('Node')
local FPSCamera = require('FPSCamera')
local SpatialShader = require('SpatialShader')
local ScreenQuad = require('ScreenQuad')
@@ -12,10 +13,7 @@ honey.input.key.bind(honey.input.key.f, function(action) if action == 1 then buf
local tex = honey.texture.new()
honey.texture.load(tex, 'checkerboard.png', false)
-local sceneRoot = honey.node(nil,
- honey.glm.vec3(),
- honey.glm.vec3(),
- honey.glm.vec3{1,1,1})
+local sceneRoot = Node.new()
local shader = SpatialShader.new(tex)
local lightDirection = honey.glm.vec3{1,1,1}
@@ -43,7 +41,8 @@ local plane2 = MeshInstance.new(suzanne,
shader)
suzanne.update = function(self, dt)
- self:rotate('y', dt)
+ self:rotate('y', 10*dt)
+ print(self.rotation)
end
local total_frames = 0