ConstructorOptions

Properties

Link copied to clipboard
abstract val allowPicking: Boolean?

When true, each geometry instance will only be pickable with Scene.pick. When false, GPU memory is saved. Default value - true

Link copied to clipboard
abstract val appearance: Appearance?

The appearance used to render the primitive.

Link copied to clipboard
abstract val asynchronous: Boolean?

Determines if the primitive will be created asynchronously or block until ready. Default value - true

Link copied to clipboard
abstract val compressVertices: Boolean?

When true, the geometry vertices are compressed, which will save memory. Default value - true

Link copied to clipboard
abstract val cull: Boolean?

When true, the renderer frustum culls and horizon culls the primitive's commands based on their bounding volume. Set this to false for a small performance gain if you are manually culling the primitive. Default value - true

Link copied to clipboard

For debugging only. Determines if this primitive's commands' bounding spheres are shown. Default value - false

Link copied to clipboard

The appearance used to shade this primitive when it fails the depth test.

Link copied to clipboard
abstract val geometryInstances: <Error class: unknown class><GeometryInstance>?

The geometry instances - or a single geometry instance - to render.

Link copied to clipboard
abstract val interleave: Boolean?

When true, geometry vertex attributes are interleaved, which can slightly improve rendering performance but increases load time. Default value - false

Link copied to clipboard
abstract val modelMatrix: Matrix4?

The 4x4 transformation matrix that transforms the primitive (all geometry instances) from model to world coordinates. Default value - Matrix4.IDENTITY

Link copied to clipboard

When true, the primitive does not keep a reference to the input geometryInstances to save memory. Default value - true

Link copied to clipboard
abstract val shadows: ShadowMode?

Determines whether this primitive casts or receives shadows from light sources. Default value - ShadowMode.DISABLED

Link copied to clipboard
abstract val show: Boolean?

Determines if this primitive will be shown. Default value - true

Link copied to clipboard

When true, geometry vertices are optimized for the pre and post-vertex-shader caches. Default value - false