BufferPrimitiveMaterial

open external class BufferPrimitiveMaterial(options: BufferPrimitiveMaterialOptions? = definedExternally)(source)

Material description for a BufferPrimitive. Abstract.

BufferPrimitiveMaterial objects are {@link Packable|packable}, stored when calling BufferPrimitive.setMaterial. Subsequent changes to the material will not affect the primitive until setMaterial() is called again.

See also

Constructors

Link copied to clipboard
constructor(options: BufferPrimitiveMaterialOptions? = definedExternally)

Types

Link copied to clipboard
external object Companion

Properties

Link copied to clipboard
external var color: Color

Color of fill.

Link copied to clipboard
external var outlineColor: Color

Color of outline.

Link copied to clipboard
external var outlineWidth: Double

Width of outline, 0-255px.

Functions

Link copied to clipboard
external fun toJSON(): JsAny

Returns a JSON-serializable object representing the material. This encoding is not memory-efficient, and should generally be used for debugging and testing.