[name]

An object representing the scene background settings. Intended to be used as a [page:Scene.background scene.background] property.

Constructor

[name]([page:.data data])

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

Properties

[property:null data]

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

[property:Boolean equirecInvertU]

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

[property:Number equirecOffsetU]

Defines an offset in the texture space along the U coordinate for [page:Texture Textures] with [page:Textures EquirectangularReflectionMapping]. Default is 0.

[property:Boolean isSceneBackground]

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

Methods

[method:SceneBackground clone]()

Creates a new clone of the SceneBackground object.

[method:null copy]([page:SceneBackground source])

Copies the properties from the source SceneBackground into this one.

[method:null toJSON]()

Returns a JSON object representation of the SceneBackground.