scene object is a container that contains everything that you see in your game!scene object is designed to contain node objects.nodes array: Contains all of the node objects in the scene.defaults array: Values that the scene uses when other objects are created or rendered given the scene.defauts.light_depthSize number: Size of the depth buffer used in shadowmapping for light objects in the scene.defaults.depthTexOptions array: Depth texture options used in shadowmapping for light objects in the scene.lighting array: Default lighting values that are used during rendering.lighting.ambience vector3: Ambient color used when rendering objects in the scene.timer number: The time passed since the scene was created.passes array: LOVR rendering passes that the scene uses.scene object can easily be created by typing in LGE.Scene() in the default lovr.load() function.Scene:getModels()
Scene:getLights()
Scene:getModels()
Scene:getBodies()
Scene:getNode(name [string])
light object is added to the scene.
Scene:resetShadows()
dt should be the lovr default in the lovr.update(dt) function.
Scene:update(dt [number])
Scene:updateLight()
Scene:updateModels()
Scene:updateBodies()
Scene:drawDepth(pass [lovr pass], proj [mat4], pose [mat4])
pass should be the default pass in the lovr.load(pass) function.
Scene:drawFull(pass [lovr pass])