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 | SkyBox | Create a skybox that displays the specified gradient, or the default gradient if none is supplied. |
fromJSON(props?: SkyBoxProps): SkyBox Static | 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 StaticReadonly | SkyBox | SkyBox | Default settings for a four-color gradient. |
gradient Readonly | SkyGradient | SkyBox | The gradient settings, used if no cube or sphere images are supplied, or if the images cannot be loaded. |
Defined in
- core/common/src/SkyBox.ts Line 338
Last Updated: 25 April, 2024
Found something wrong, missing, or unclear on this page?
Raise an issue in our repo.