diff options
author | sanine-a <sanine.not@pm.me> | 2020-12-05 16:59:28 -0600 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-12-05 16:59:28 -0600 |
commit | 09a96abe4d6933eb473b0dd8a7027cc0cb04ac63 (patch) | |
tree | fd60e3080694689f336351cab4bb269a21869606 /demo/SpatialShader.lua | |
parent | bbebc8d2582f639ecac1c4551411949eeacfc7ee (diff) |
change textures to use metamethods
Diffstat (limited to 'demo/SpatialShader.lua')
-rw-r--r-- | demo/SpatialShader.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |