internal constructor new Cesium.ShadowMap()

Use Viewer#shadowMap to get the scene's shadow map. Do not construct this directly.

正常的 Offset 偏差将阴影稍稍向前推, 并可能被禁用 用于需要超精确阴影的应用程序.

Throws:
Demo:

Members

darkness : number

确定阴界的黑暗.
Default Value: 0.3

enabled : boolean

确定是否显示阴影图.
Default Value: true

fadingEnabled : boolean

确定一旦光线接近地平线,阴影是否开始消失.
Default Value: true

maximumDistance : number

确定阴影图的最大距离。 仅适用于级联阴影. 距离较大可能导致质量较低的阴影.
Default Value: 5000.0

normalOffset : boolean

确定对阴影是否应用正常偏差.
Default Value: true

size : number

每个阴影图的宽度和高度,以像素表示.
Default Value: 2048

softShadows : boolean

确定是否启用软阴影 。 使用 pcf 过滤需要更多纹理读取并可能损害性能 .
Default Value: false
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.