diff options
author | sanine-a <sanine.not@pm.me> | 2020-12-05 18:37:44 -0600 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-12-05 18:37:44 -0600 |
commit | ba9a7162b72e6b20466de7dd115719777315b5c2 (patch) | |
tree | 80ecd412817ca85adcb0ec944ab4a28be7b4737c /demo/main.lua | |
parent | 09a96abe4d6933eb473b0dd8a7027cc0cb04ac63 (diff) |
switch meshes to use metamathods
Diffstat (limited to 'demo/main.lua')
-rw-r--r-- | demo/main.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demo/main.lua b/demo/main.lua index 5b19166..8e8d3d3 100644 --- a/demo/main.lua +++ b/demo/main.lua @@ -20,7 +20,7 @@ local lightDirection = honey.glm.vec3{1,1,1} lightDirection:normalize() shader:setVec3('directional_lights[0].direction', lightDirection) shader:setVec3('directional_lights[0].color', honey.glm.vec3{0,1,0}) -local meshes = honey.mesh.load('Suzanne.obj') +local meshes = honey.mesh('Suzanne.obj') local suzanne = MeshInstance.new(sceneRoot, honey.glm.vec3{0,0,3}, honey.glm.vec3{0,math.pi,0}, @@ -41,7 +41,7 @@ local plane2 = MeshInstance.new(suzanne, shader) suzanne.update = function(self, dt) - self:rotate('y', 10*dt) + self:rotate('y', dt) end local total_frames = 0 |