Remove replace obj with glb files, don't import materials (Not favoring that solution anymore, sensible defaults applied to keep demoes consistent)

This commit is contained in:
Dane Johnson
2021-05-05 15:23:24 -05:00
parent d658d7a300
commit 44e8f784f5
29 changed files with 21 additions and 11783 deletions

View File

@@ -14,10 +14,10 @@ function init()
light:SetSpecular(0.1)
couch.Node.GetRoot():AddChild(light:Instance())
local ibox = couch.TexturedMesh("../resources/inverted_cube.obj", "../resources/paintedwood.jpg")
local ibox = couch.TexturedMesh("../resources/inverted_cube.glb", "../resources/paintedwood.jpg")
couch.Node.GetRoot():AddChild(ibox:Instance())
local box = couch.Mesh.FromFile("../resources/cube.obj")
local box = couch.Mesh.FromFile("../resources/cube.glb")
material = box:GetMaterial(0)
material.ambient = Vector3(1.0, 0.0, 0.0)
material.diffuse = Vector3(1.0, 0.0, 0.0)