Fix texture filtering (should all be nearest)

This commit is contained in:
Dane Johnson
2021-01-18 19:06:37 -06:00
parent 70a2e0352a
commit 78370a2ffd
5 changed files with 9 additions and 8 deletions

Binary file not shown.

View File

@@ -41,11 +41,12 @@ function init()
ball1.transform:Translate(0.0, 3.0, 0.0)
cube = couch.Mesh.FromFile("cube.glb")
cube:SetupMesh();
cube.material.tex = couch.Texture.FromFile("container.png")
cube.material.usesTex = true
couch.Node.GetRoot().children:Append(cube)
trough = couch.Mesh.FromFile("trough.glb")
trough:SetupMesh()
trough.material.tex = couch.Texture.FromFile("wood_lowres.png")
trough.material.usesTex = true
couch.Node.GetRoot().children:Append(trough)
trough.transform:Translate(10.0, 0.0, 0.0)
end
function update(delta)

BIN
demo/trough.glb Normal file

Binary file not shown.

BIN
demo/wood_lowres.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB