@JsType(isNative=true, namespace="<global>", name="Object") public class FromGltfOptions extends Object
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.
|
boolean |
clampAnimations
Determines if the model's animations should hold a pose over frames where no keyframes are specified.
|
boolean |
debugShowBoundingVolume
For debugging only.
|
boolean |
debugWireframe
For debugging only.
|
boolean |
dequantizeInShader
Determines if a Draco encoded model is dequantized on the GPU.
|
Object |
headers
HTTP headers to send with the request.
|
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.
|
boolean |
incrementallyLoadTextures
Determine if textures may continue to stream in after the model is loaded.
|
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.
|
Number |
shadows
Determines whether the model casts or receives shadows from each light source.
|
boolean |
show
Determines if the model primitive will be shown.
|
String |
url
The url to the .gltf file.
|
Constructor and Description |
---|
FromGltfOptions() |
@JsProperty public String url
@JsProperty public Object headers
@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 boolean clampAnimations
@JsProperty public Number shadows
ShadowMode.ENABLED()
.@JsProperty public boolean debugShowBoundingVolume
@JsProperty public boolean debugWireframe
@JsProperty public Number heightReference
HeightReference
.@JsProperty public boolean dequantizeInShader
Copyright © 2019. All rights reserved.