Scene object is a container that contains everything that you see in your game!Scene object is designed to contain Node objects.root Node object: This is the primary Node object of the Scene! All other Node objects added should be descendants of the root Node.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 object can easily be saved to a lua file in any directory inside of your project.
Scene:saveToFile(filepath [string])
--# Example: saving a scene to a folder inside of the project.
Scene:saveToFile("scenes/scene_save")
Scene object can also be reconstructed from a save file from any directory inside your project!
local myScene = Scene.createFromFile(filepath [string])
Scene:getModels()
Scene:getLights()
Scene:getModels()
Scene:getBodies()
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:updateParticles()
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])