Fix texture filtering (should all be nearest)
This commit is contained in:
BIN
demo/cube.glb
BIN
demo/cube.glb
Binary file not shown.
@@ -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
BIN
demo/trough.glb
Normal file
Binary file not shown.
BIN
demo/wood_lowres.png
Normal file
BIN
demo/wood_lowres.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
Reference in New Issue
Block a user