@JsType(isNative=true, namespace="<global>", name="Object") public class PrimitiveOptions extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
allowPicking
When true, each geometry instance will only be pickable with Scene#pick.
|
Appearance |
appearance
The appearance used to render the primitive.
|
boolean |
asynchronous
Determines if the primitive will be created asynchronously or block until ready.
|
boolean |
compressVertices
When true, the geometry vertices are compressed, which will save memory.
|
boolean |
cull
When true, the renderer frustum culls and horizon culls the primitive's commands based on their bounding volume.
|
boolean |
debugShowBoundingVolume
For debugging only.
|
GeometryInstance[] |
geometryInstances
The geometry instances - or a single geometry instance - to render.
|
boolean |
interleave
When true, geometry vertex attributes are interleaved, which can slightly improve rendering performance but increases load time.
|
Matrix4 |
modelMatrix
The 4x4 transformation matrix that transforms the primitive (all geometry instances) from model to world coordinates.
|
boolean |
releaseGeometryInstances
When true, the primitive does not keep a reference to the input geometryInstances to save memory.
|
int |
shadows
Determines whether this primitive casts or receives shadows from each light source.
|
boolean |
show
Determines if this primitive will be shown.
|
boolean |
vertexCacheOptimize
When true, geometry vertices are optimized for the pre and post-vertex-shader caches.
|
Constructor and Description |
---|
PrimitiveOptions()
Options
|
@JsProperty public GeometryInstance[] geometryInstances
@JsProperty public Appearance appearance
@JsProperty public boolean show
@JsProperty public Matrix4 modelMatrix
Matrix4.IDENTITY()
@JsProperty public boolean vertexCacheOptimize
@JsProperty public boolean interleave
@JsProperty public boolean compressVertices
@JsProperty public boolean releaseGeometryInstances
@JsProperty public boolean allowPicking
@JsProperty public boolean cull
@JsProperty public boolean asynchronous
@JsProperty public boolean debugShowBoundingVolume
@JsProperty public int shadows
ShadowMode.DISABLED()
Copyright © 2019. All rights reserved.