FromGltfAsyncOptions
Properties
When true
, each primitive is pickable with Scene.pick. Default value - true
Determines if model WebGL resource creation will be spread out over several frames or block until completion once all glTF files are loaded. Default value - true
Whether to cull back-facing geometry. When true, back face culling is determined by the material's doubleSided property; when false, back face culling is disabled. Back faces are not culled if the model's color is translucent. Default value - true
Determines if the model's animations should hold a pose over frames where no keyframes are specified. Default value - true
Determines whether terrain, 3D Tiles or both will be classified by this model. This cannot be set after the model has loaded.
The ClippingPlaneCollection used to selectively disable rendering the model.
The ClippingPolygonCollection used to selectively disable rendering the model.
Value used to determine the color strength when the colorBlendMode
is MIX
. A value of 0.0 results in the model's rendered color while a value of 1.0 results in a solid color, with any value in-between resulting in a mix of the two. Default value - 0.5
Defines how the color blends with the model. Default value - ColorBlendMode.HIGHLIGHT
The tile content this model belongs to. This property will be undefined if model is not loaded as part of a tileset.
A custom shader. This will add user-defined GLSL code to the vertex and fragment shaders. Using custom shaders with a Cesium3DTileStyle may lead to undefined behavior.
For debugging only. Draws the bounding sphere for each draw command in the model. Default value - false
For debugging only. Draws the model in wireframe. Will only work for WebGL1 if enableDebugWireframe is set to true. Default value - false
The condition specifying at what distance from the camera that this model will be displayed.
For debugging only. This must be set to true for debugWireframe to work in WebGL1. This cannot be set after the model has loaded. Default value - false
Whether to allow with CPU picking with pick
when not using WebGL 2 or above. If using WebGL 2 or above, this option will be ignored. If using WebGL 1 and this is true, the pick
operation will work correctly, but it will use more memory to do so. If running with WebGL 1 and this is false, the model will use less memory, but pick
will always return undefined
. This cannot be set after the model has loaded. Default value - false
Whether to enable outlines for models using the CESIUM_primitive_outline extension. This can be set false to avoid post-processing geometry at load time. When false, the showOutlines and outlineColor options are ignored. Default value - true
If true
, the model is exaggerated along the ellipsoid normal when Scene.verticalExaggeration is set to a value other than 1.0
. Default value - true
The properties for managing dynamic environment maps on this model.
Label of the feature ID set to use for picking and styling. For EXT_mesh_features, this is the feature ID's label property, or "featureId_N" (where N is the index in the featureIds array) when not specified. EXT_feature_metadata did not have a label field, so such feature ID sets are always labeled "featureId_N" where N is the index in the list of all feature Ids, where feature ID attributes are listed before feature ID textures. If featureIdLabel is an integer N, it is converted to the string "featureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority. Default value - "featureId_0"
The forward-axis of the glTF model. Default value - Axis.Z
A function that is called with the loaded gltf object once loaded.
Determines how the model is drawn relative to terrain. Default value - HeightReference.NONE
A user-defined object to return when the model is picked with Scene.pick.
The properties for managing image-based lighting on this model.
Determine if textures may continue to stream in after the model is loaded. Default value - true
Label of the instance feature ID set used for picking and styling. If instanceFeatureIdLabel is set to an integer N, it is converted to the string "instanceFeatureId_N" automatically. If both per-primitive and per-instance feature IDs are present, the instance feature IDs take priority. Default value - "instanceFeatureId_0"
The light color when shading the model. When undefined
the scene's light color is used instead.
The maximum scale size of a model. An upper limit for minimumPixelSize.
The approximate minimum pixel size of the model regardless of zoom. Default value - 0.0
The 4x4 transformation matrix that transforms the model from model to world coordinates. Default value - Matrix4.IDENTITY
The pass to use in the DrawCommand for the opaque portions of the model. Default value - Pass.OPAQUE
The color to use when rendering outlines. Default value - Color.BLACK
Options for constructing a PointCloudShading object to control point attenuation and lighting.
Whether to accurately project the model's positions in 2D. If this is true, the model will be projected accurately to 2D, but it will use more memory to do so. If this is false, the model will use less memory and will still render in 2D / CV mode, but its positions may be inaccurate. This disables minimumPixelSize and prevents future modification to the model matrix. This also cannot be set after the model has loaded. Default value - false
When true, the glTF JSON is released once the glTF is loaded. This is is especially useful for cases like 3D Tiles, where each .gltf model is unique and caching the glTF JSON is not effective. Default value - false
Determines whether the model casts or receives shadows from light sources. Default value - ShadowMode.ENABLED
Whether to display the credits of this model on screen. Default value - false
Whether to display the outline for models using the CESIUM_primitive_outline extension. When true, outlines are displayed. When false, outlines are not displayed. Default value - true
The silhouette color. If more than 256 models have silhouettes enabled, there is a small chance that overlapping models will have minor artifacts. Default value - Color.RED
The size of the silhouette in pixels. Default value - 0.0
The SplitDirection split to apply to this model. Default value - SplitDirection.NONE