Skip to content

Mojo3d scene

mojo3d:mojo3d.Scene

Class Scene#

The Scene class.

Constructors
New Creates a new scene.
Properties
AmbientLight Ambient diffuse lighting.
CSMSplits Array containing the cascaded shadow map frustum splits for directional light shadows.
ClearColor The clear color.
Editable (read only)
Editing
EnvColor The environment color.
EnvTexture The environment texture.
FogColor
FogFar
FogNear
Jsonifier (read only)
MaxSubSteps Number of update steps.
ShadowAlpha
SkyColor The sky color.
SkyTexture The sky texture.
UpdateRate Update rate.
Updating True if scene is currently updating (read only)
World hidden (read only)
Methods
AddPostEffect Adds a post effect to the scene.
DestroyAllEntities Destroys all entities in the scene.
FindEntity Finds an entity in the scene.
GetPostEffects
GetRootEntities Enumerates all entities in the scene with null parents.
LoadTexture
RayCast
RemovePostEffect Removes a post effect from the scene
Render Renders the scene to a canvas.
Save Saves the scene to a mojo3d scene file
Start Starts the scene.
Update Updates the scene.
Functions
GetCurrent Gets the current scene.
Load Loads a mojo3d scene file and makes it current
SetCurrent Sets the current scene.