[page:Object3D] →

[name]

Scenes allow you to set up what and where is to be rendered by three.js. This is where you place objects, lights and cameras.

Constructor

[name]()

Create a new scene object.

Properties

[property:Object background]

Defines the background of the scene. Default is `null`. Valid inputs are:

Note: Any camera related configurations like `zoom` or `view` are ignored.

[property:Float backgroundBlurriness]

Sets the blurriness of the background. Only influences environment maps assigned to [page:Scene.background]. Valid input is a float between `0` and `1`. Default is `0`.

[property:Float backgroundIntensity]

Attenuates the color of the background. Only applies to background textures. Default is `1`.

[property:Euler backgroundRotation]

The rotation of the background in radians. Only influences environment maps assigned to [page:Scene.background]. Default is `(0,0,0)`.

[property:Texture environment]

Sets the environment map for all physical materials in the scene. However, it's not possible to overwrite an existing texture assigned to [page:MeshStandardMaterial.envMap]. Default is `null`.

[property:Float environmentIntensity]

Attenuates the color of the environment. Only influences environment maps assigned to [page:Scene.environment]. Default is `1`.

[property:Euler environmentRotation]

The rotation of the environment map in radians. Only influences physical materials in the scene when [page:.environment] is used. Default is `(0,0,0)`.

[property:Fog fog]

A [page:Fog fog] instance defining the type of fog that affects everything rendered in the scene. Default is `null`.

[property:Boolean isScene]

Read-only flag to check if a given object is of type [name].

[property:Material overrideMaterial]

Forces everything in the scene to be rendered with the defined material. Default is `null`.

Methods

[method:Object toJSON]( [param:Object meta] )

meta -- object containing metadata such as textures or images for the scene.
Convert the scene to three.js [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 JSON Object/Scene format].

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]