Use
Viewer#shadowMap 获取场景的阴影贴图。不要直接构建它。 to get the scene's shadow map. Do not construct this directly.
NormalOffset 偏差将阴影稍微向前推,对于需要超精确阴影的应用程序可能会被禁用。 The normalOffset bias pushes the shadows forward slightly, and may be disabled for applications that require ultra precise shadows.
抛出: Throws:
-
DeveloperError :仅支持1个或4个级联。 : Only one or four cascades are supported.
演示: Demo:
成员 Members
确定阴影的暗度。 Determines the darkness of the shadows.
-
默认值: Default Value:
0.3
确定是否显示阴影贴图。 Determines if the shadow map will be shown.
-
默认值: Default Value:
true
确定当光线接近地平线时阴影是否开始淡出。 Determines whether shadows start to fade out once the light gets closer to the horizon.
-
默认值: Default Value:
true
确定阴影贴图的最大距离。仅适用于级联阴影。较大的距离可能会导致阴影质量较低。 Determines the maximum distance of the shadow map. Only applicable for cascaded shadows. Larger distances may result in lower quality shadows.
-
默认值: Default Value:
5000.0
确定是否将法线偏差应用于阴影。 Determines if a normal bias will be applied to shadows.
-
默认值: Default Value:
true
每个阴影贴图的宽度和高度(以像素为单位)。 The width and height, in pixels, of each shadow map.
-
默认值: Default Value:
2048
确定是否启用软阴影。使用 pcf 过滤,这需要更多纹理读取并可能会损害性能。 Determines if soft shadows are enabled. Uses pcf filtering which requires more texture reads and may hurt performance.
-
默认值: Default Value:
false
