summaryrefslogtreecommitdiff
path: root/demo/SpatialShader.lua
diff options
context:
space:
mode:
Diffstat (limited to 'demo/SpatialShader.lua')
-rw-r--r--demo/SpatialShader.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/demo/SpatialShader.lua b/demo/SpatialShader.lua
index 699cff2..0c65176 100644
--- a/demo/SpatialShader.lua
+++ b/demo/SpatialShader.lua
@@ -74,10 +74,10 @@ SpatialShader.prototype.setCamera = function(self, camera)
self.shader:setMat4('projection', camera.projection)
end
-SpatialShader.prototype.drawMesh = function(self, mesh)
- self.shader:setMat4('model', mesh.transform)
+SpatialShader.prototype.drawMesh = function(self, meshInstance)
+ self.shader:setMat4('model', meshInstance.transform)
self.albedo:use(0)
- honey.mesh.draw(mesh.mesh, self.shader)
+ meshInstance.mesh:draw(self.shader)
end
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~