Model loading and texturing

This commit is contained in:
Dane Johnson
2021-01-18 18:25:47 -06:00
parent 66bf7776c7
commit 155b572aca
1283 changed files with 533814 additions and 42 deletions

BIN
demo/cube.glb Normal file

Binary file not shown.

View File

@@ -40,6 +40,12 @@ function init()
couch.Node.GetRoot().children:Append(ball1)
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)
end
function update(delta)