Moon

open 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
external interface ConstructorOptions

Properties

Link copied to clipboard
external val ellipsoid: Ellipsoid

Get the ellipsoid that defines the shape of the moon.

Link copied to clipboard
external var onlySunLighting: Boolean

Use the sun as the only light source.

Link copied to clipboard
external var show: Boolean

Determines if the moon will be shown.

Link copied to clipboard
external var textureUrl: String

The moon texture.

Functions

Link copied to clipboard
external 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
external fun isDestroyed(): Boolean

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