Skip to content

KBE3D / KBCore / Cesium / ModelGraphics / ConstructorOptions

接口: ConstructorOptions

Initialization options for the ModelGraphics constructor

属性

show?

optional show: boolean | Property

A boolean Property specifying the visibility of the model.


uri?

optional uri: string | Property | Resource

A string or Resource Property specifying the URI of the glTF asset.


scale?

optional scale: number | Property

A numeric Property specifying a uniform linear scale.


enableVerticalExaggeration?

optional enableVerticalExaggeration: boolean | Property

A boolean Property specifying if the model is exaggerated along the ellipsoid normal when Scene.verticalExaggeration is set to a value other than <code>1.0</code>.


minimumPixelSize?

optional minimumPixelSize: number | Property

A numeric Property specifying the approximate minimum pixel size of the model regardless of zoom.


maximumScale?

optional maximumScale: number | Property

The maximum scale size of a model. An upper limit for minimumPixelSize.


incrementallyLoadTextures?

optional incrementallyLoadTextures: boolean | Property

Determine if textures may continue to stream in after the model is loaded.


runAnimations?

optional runAnimations: boolean | Property

A boolean Property specifying if glTF animations specified in the model should be started.


clampAnimations?

optional clampAnimations: boolean | Property

A boolean Property specifying if glTF animations should hold the last pose for time durations with no keyframes.


shadows?

optional shadows: Property | ShadowMode

An enum Property specifying whether the model casts or receives shadows from light sources.


heightReference?

optional heightReference: Property | HeightReference

A Property specifying what the height is relative to.


silhouetteColor?

optional silhouetteColor: Color | Property

A Property specifying the Color of the silhouette.


silhouetteSize?

optional silhouetteSize: number | Property

A numeric Property specifying the size of the silhouette in pixels.


color?

optional color: Color | Property

A Property specifying the Color that blends with the model's rendered color.


colorBlendMode?

optional colorBlendMode: Property | ColorBlendMode

An enum Property specifying how the color blends with the model.


colorBlendAmount?

optional colorBlendAmount: number | Property

A numeric Property specifying the color strength when the <code>colorBlendMode</code> is <code>MIX</code>. 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.


imageBasedLightingFactor?

optional imageBasedLightingFactor: Property | Cartesian2

A property specifying the contribution from diffuse and specular image-based lighting.


environmentMapOptions?

optional environmentMapOptions: PropertyBag | {[key: string]: any; }

The properties for managing dynamic environment maps on this entity.


lightColor?

optional lightColor: Color | Property

A property specifying the light color when shading the model. When <code>undefined</code> the scene's light color is used instead.


distanceDisplayCondition?

optional distanceDisplayCondition: Property | DistanceDisplayCondition

A Property specifying at what distance from the camera that this model will be displayed.


nodeTransformations?

optional nodeTransformations: PropertyBag | {[key: string]: TranslationRotationScale; }

An object, where keys are names of nodes, and values are TranslationRotationScale Properties describing the transformation to apply to that node. The transformation is applied after the node's existing transformation as specified in the glTF, and does not replace the node's existing transformation.


articulations?

optional articulations: PropertyBag | {[key: string]: number; }

An object, where keys are composed of an articulation name, a single space, and a stage name, and the values are numeric properties.


clippingPlanes?

optional clippingPlanes: Property | ClippingPlaneCollection

A property specifying the ClippingPlaneCollection used to selectively disable rendering the model.


customShader?

optional customShader: Property | CustomShader

A property specifying the CustomShader to apply to this model.

KBE3D @3.0.0 Copyright © 2024-present KBE3D