Modifier and Type | Field and Description |
---|---|
boolean |
allowPicking
When true, each glTF mesh and primitive is pickable with
Scene.pick(org.cesiumjs.cs.core.Cartesian2)
Default: true. |
boolean |
asynchronous
Determines if model WebGL resource creation will be spread out over several frames or block until completion once all glTF files are loaded.
|
String |
basePath
The base path that paths in the glTF JSON are relative to.
|
ClippingPlaneCollection |
clippingPlanes
The ClippingPlaneCollection used to selectively disable rendering the model.
|
Color |
color
A color that blends with the model's rendered color.
|
double |
colorBlendAmount
Value used to determine the color strength when the colorBlendMode is MIX.
|
Number |
colorBlendMode
Defines how the color blends with the model.
|
boolean |
debugShowBoundingVolume
For debugging only.
|
boolean |
debugWireframe
For debugging only.
|
boolean |
dequantizeInShader
Determines if a Draco encoded model is dequantized on the GPU.
|
DistanceDisplayCondition |
distanceDisplayCondition
The condition specifying at what distance from the camera that this model will be displayed.
|
Object |
gltf
The object for the glTF JSON or an arraybuffer of Binary glTF defined by the KHR_binary_glTF extension.
|
com.google.gwt.typedarrays.shared.ArrayBuffer |
gltfArrayBuffer
The object for the glTF JSON or an arraybuffer of Binary glTF defined by the KHR_binary_glTF extension.
|
com.google.gwt.typedarrays.shared.Uint8Array |
gltfUint8Array
The object for the glTF JSON or an arraybuffer of Binary glTF defined by the KHR_binary_glTF extension.
|
Number |
heightReference
Determines how the model is drawn relative to terrain.
|
Object |
id
A user-defined object to return when the model is picked with Scene#pick.
|
Cartesian2 |
imageBasedLightingFactor
Scales diffuse and specular image-based lighting from the earth, sky, atmosphere and star skybox.
|
boolean |
incrementallyLoadTextures
Determine if textures may continue to stream in after the model is loaded.
|
Cartesian3 |
lightColor
The color and intensity of the sunlight used to shade the model.
|
double |
luminanceAtZenith
The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map.
|
double |
maximumScale
The maximum scale size of a model.
|
double |
minimumPixelSize
The approximate minimum pixel size of the model regardless of zoom.
|
Matrix4 |
modelMatrix
The 4x4 transformation matrix that transforms the model from model to world coordinates.
|
double |
scale
A uniform scale applied to this model.
|
Scene |
scene
Must be passed in for models that use the height reference property.
|
Number |
shadows
Determines whether the model casts or receives shadows from each light source.
|
boolean |
show
Determines if the model primitive will be shown.
|
Color |
silhouetteColor
The silhouette color.
|
double |
silhouetteSize
The size of the silhouette in pixels.
|
String |
specularEnvironmentMaps
A URL to a KTX file that contains a cube map of the specular lighting and the convoluted specular mipmaps.
|
Cartesian3[] |
sphericalHarmonicCoefficients
The third order spherical harmonic coefficients used for the diffuse color of image-based lighting.
|
Constructor and Description |
---|
ModelOptions() |
@JsProperty public Object gltf
@JsProperty public com.google.gwt.typedarrays.shared.ArrayBuffer gltfArrayBuffer
@JsProperty public com.google.gwt.typedarrays.shared.Uint8Array gltfUint8Array
@JsProperty public String basePath
@JsProperty public boolean show
@JsProperty public Matrix4 modelMatrix
Matrix4.IDENTITY()
.@JsProperty public double scale
@JsProperty public double minimumPixelSize
@JsProperty public double maximumScale
@JsProperty public Object id
@JsProperty public boolean allowPicking
Scene.pick(org.cesiumjs.cs.core.Cartesian2)
Default: true.@JsProperty public boolean incrementallyLoadTextures
@JsProperty public boolean asynchronous
@JsProperty public Number shadows
ShadowMode.ENABLED()
.@JsProperty public boolean debugShowBoundingVolume
@JsProperty public boolean debugWireframe
@JsProperty public Number heightReference
HeightReference
.@JsProperty public Scene scene
@JsProperty public DistanceDisplayCondition distanceDisplayCondition
@JsProperty public Color color
Color.WHITE()
.@JsProperty public Number colorBlendMode
ColorBlendMode.HIGHLIGHT()
.@JsProperty public double colorBlendAmount
@JsProperty public Color silhouetteColor
Color.RED()
.@JsProperty public double silhouetteSize
@JsProperty public ClippingPlaneCollection clippingPlanes
@JsProperty public boolean dequantizeInShader
@JsProperty public Cartesian2 imageBasedLightingFactor
@JsProperty public Cartesian3 lightColor
@JsProperty public double luminanceAtZenith
@JsProperty public Cartesian3[] sphericalHarmonicCoefficients
@JsProperty public String specularEnvironmentMaps
Copyright © 2019. All rights reserved.