summaryrefslogtreecommitdiff
path: root/demo/SpatialShader.lua
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-12-05 18:37:44 -0600
committersanine-a <sanine.not@pm.me>2020-12-05 18:37:44 -0600
commitba9a7162b72e6b20466de7dd115719777315b5c2 (patch)
tree80ecd412817ca85adcb0ec944ab4a28be7b4737c /demo/SpatialShader.lua
parent09a96abe4d6933eb473b0dd8a7027cc0cb04ac63 (diff)
switch meshes to use metamathods
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
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~