Moon

external class Moon(options: Moon.ConstructorOptions? = definedExternally)(source)

Draws the Moon in 3D.

scene.moon = new Moon();

See also

Constructors

Link copied to clipboard
constructor(options: Moon.ConstructorOptions? = definedExternally)

Types

Link copied to clipboard

Properties

Link copied to clipboard

Get the ellipsoid that defines the shape of the moon.

Link copied to clipboard

Use the sun as the only light source.

Link copied to clipboard

Determines if the moon will be shown.

Link copied to clipboard

The moon texture.

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.