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
name: string;atmosphere
atmosphere: Atmosphere;Methods
setAmbientIntensity
setAmbientIntensity(intensity: number): void;setAmbientIntensity(intensity: number): void;setAutomaticAmbient
setAutomaticAmbient(enabled: boolean): void;setSkybox
setSkybox(skybox: Skybox): void;useAtmosphereSkybox
useAtmosphereSkybox(enabled: boolean): void;setEnvironment
setEnvironment(environment: Environment): void;setAmbientColor
setAmbientColor(color: Color): void;addDirectionalLight
addDirectionalLight(light: DirectionalLight): void;addLight
addLight(light: Light): void;addSpotLight
addSpotLight(light: SpotLight): void;addAreaLight
addAreaLight(light: AreaLight): void;getCamera
Returns the active camera.
getCamera(): Camera;getWindow
Returns the active runtime window.
getWindow(): Window;