How To

Mirror Engine API / Sky
Class: Sky
Implementation of the sky.
Properties
node
readonly node: GraphNode;
A graph node with a transform used to render the sky mesh. Adjust the position, rotation and scale of this node to orient the sky mesh. Ignored for SKYTYPE_INFINITE.
center
Set Signature
set center(value: Vec3): void
The center of the sky. Ignored for SKYTYPE_INFINITE. Typically only the y-coordinate is used, representing the tripod height. Defaults to (0, 1, 0).
Parameters
value
Returns
void
type
Set Signature
set type(value: string): void
The type of the sky. One of the SKYMESH_* constants. Defaults to SKYTYPE_INFINITE. Can be:
Parameters
value
string
Returns
void