SceneBackground

An object representing the scene background settings. Intended to be used as a scene.background property.

Constructor

SceneBackground(data)

Data to fill the background with. Can be set to a Color which sets the clear color, a Texture covering the canvas, a CubeTexture or a WebGLRenderTargetCube.

Properties

.data : null

Data to fill the background with. Can be set to a Color which sets the clear color, a Texture covering the canvas, a CubeTexture or a WebGLRenderTargetCube.

.equirecInvertU : Boolean

If set to true, inverts texture mapping along the U coordinate for Textures with EquirectangularReflectionMapping. Default is false.

.equirecOffsetU : Number

Defines an offset in the texture space along the U coordinate for Textures with EquirectangularReflectionMapping. Default is 0.

.isSceneBackground : Boolean

Used to check whether this or derived classes are of type SceneBackground. Default is true.

Methods

.clone () : SceneBackground

Creates a new clone of the SceneBackground object.

.copy (source) : null

Copies the properties from the source SceneBackground into this one.

.toJSON () : null

Returns a JSON object representation of the SceneBackground.