Sun

external class Sun(source)

Draws a sun billboard. This is only supported in 3D and Columbus view.

scene.sun = new Sun();

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Gets or sets a number that controls how "bright" the Sun's lens flare appears to be. Zero shows just the Sun's disc without any flare. Use larger values for a more pronounced flare around the Sun.

Link copied to clipboard

Determines if the sun will be shown.

Functions

Link copied to clipboard
fun destroy()

Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.

Link copied to clipboard

Returns true if this object was destroyed; otherwise, false.