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
object Companion

Properties

Link copied to clipboard

Color of fill.

Link copied to clipboard

Color of outline.

Link copied to clipboard

Width of outline, 0-255px.

Functions

Link copied to clipboard
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.