Skip to content

KBE3D / KBCore / Cesium / ShadowMap

类: ShadowMap

<div class="notice"> Use Viewer#shadowMap to get the scene's shadow map. Do not construct this directly. </div>

<p> The normalOffset bias pushes the shadows forward slightly, and may be disabled for applications that require ultra precise shadows. </p>

属性

darkness

darkness: number

Determines the darkness of the shadows.


fadingEnabled

fadingEnabled: boolean

Determines whether shadows start to fade out once the light gets closer to the horizon.


maximumDistance

maximumDistance: number

Determines the maximum distance of the shadow map. Only applicable for cascaded shadows. Larger distances may result in lower quality shadows.


enabled

enabled: boolean

Determines if the shadow map will be shown.


normalOffset

normalOffset: boolean

Determines if a normal bias will be applied to shadows.


softShadows

softShadows: boolean

Determines if soft shadows are enabled. Uses pcf filtering which requires more texture reads and may hurt performance.


size

size: number

The width and height, in pixels, of each shadow map.

构造函数

构造函数

new ShadowMap(): ShadowMap

返回

ShadowMap

KBE3D @3.0.0 Copyright © 2024-present KBE3D