From 09a96abe4d6933eb473b0dd8a7027cc0cb04ac63 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sat, 5 Dec 2020 16:59:28 -0600 Subject: change textures to use metamethods --- demo/SpatialShader.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demo/SpatialShader.lua') diff --git a/demo/SpatialShader.lua b/demo/SpatialShader.lua index 5f83e59..699cff2 100644 --- a/demo/SpatialShader.lua +++ b/demo/SpatialShader.lua @@ -76,7 +76,7 @@ end SpatialShader.prototype.drawMesh = function(self, mesh) self.shader:setMat4('model', mesh.transform) - honey.texture.use(self.albedo, 0) + self.albedo:use(0) honey.mesh.draw(mesh.mesh, self.shader) end -- cgit v1.2.1