SkyCube Class

Describes how to draw a representation of a sky by mapping images to the interior faces of a cube. The images are required to be square, and each image must have the same dimensions as the other images.

Extends

Methods

Name Description
constructor(images: SkyCubeProps, gradient?: SkyGradient): SkyCube Create a new sky cube using the specified images.  
toJSON(display?: boolean): SkyBoxProps See SkyBox.toJSON.  

Inherited methods

Name Inherited from Description
createGradient(gradient?: SkyGradient): SkyBox Static Inherited SkyBox Create a skybox that displays the specified gradient, or the default gradient if none is supplied.
fromJSON(props?: SkyBoxProps): SkyBox Static Inherited SkyBox Create from JSON representation.

Properties

Name Type Description
images Readonly SkyCubeProps The images to map to each face of the cube.  

Inherited properties

Name Type Inherited from Description
defaults Static Readonly Inherited SkyBox SkyBox Default settings for a four-color gradient.
gradient Readonly Inherited SkyGradient SkyBox The gradient settings, used if no cube or sphere images are supplied, or if the images cannot be loaded.

Defined in

Last Updated: 14 November, 2024