Add ambient light from point lights

This commit is contained in:
Dane Johnson
2021-03-04 14:49:48 -06:00
parent 55f293137f
commit 0562cd8aea
3 changed files with 15 additions and 6 deletions

View File

@@ -185,7 +185,8 @@ function init_point_lights()
pointLight:Translate(couch.Vector3(i * -10.0, 0, -10))
pointLight:SetRadius(10.0)
pointLight:SetColor(color)
pointLight:SetAmbient(1.0)
pointLight:SetAmbient(0.2)
pointLight:SetDiffuse(1.0)
pointLight:SetSpecular(0.1)
local lightBox = couch.Mesh.FromFile("../resources/cube.obj")
lightBox:UniformScale(0.5);