API Referenceatlas
Scene
Access to the active scene, its lighting, atmosphere, camera, and window.
Module: atlas
Access to the active scene, its lighting, atmosphere, camera, and window.
Declaration
export class Scene { ... }Properties
name
The human-readable name.
name: string;atmosphere
The scene atmosphere controller.
atmosphere: Atmosphere;Methods
setAmbientIntensity
Sets ambient intensity.
setAmbientIntensity(intensity: number): void;setAmbientIntensity(intensity: number): void;setAutomaticAmbient
Sets automatic ambient.
setAutomaticAmbient(enabled: boolean): void;setSkybox
Sets skybox.
setSkybox(skybox: Skybox): void;useAtmosphereSkybox
Configures the use of atmosphere skybox.
useAtmosphereSkybox(enabled: boolean): void;setEnvironment
Sets environment.
setEnvironment(environment: Environment): void;setAmbientColor
Sets ambient color.
setAmbientColor(color: Color): void;addDirectionalLight
Adds directional light.
addDirectionalLight(light: DirectionalLight): void;addLight
Adds light.
addLight(light: Light): void;addSpotLight
Adds spot light.
addSpotLight(light: SpotLight): void;addAreaLight
Adds area light.
addAreaLight(light: AreaLight): void;getCamera
Returns the active camera.
getCamera(): Camera;getWindow
Returns the active runtime window.
getWindow(): Window;