context |
Context
|
|
The context in which to create the shadow map. |
lightCamera |
Camera
|
|
A camera representing the light source. |
enabled |
Boolean
|
true
|
optional
Whether the shadow map is enabled. |
isPointLight |
Boolean
|
false
|
optional
Whether the light source is a point light. Point light shadows do not use cascades. |
pointLightRadius |
Boolean
|
100.0
|
optional
Radius of the point light. |
cascadesEnabled |
Boolean
|
true
|
optional
Use multiple shadow maps to cover different partitions of the view frustum. |
numberOfCascades |
Number
|
4
|
optional
The number of cascades to use for the shadow map. Supported values are one and four. |
maximumDistance |
Number
|
5000.0
|
optional
The maximum distance used for generating cascaded shadows. Lower values improve shadow quality. |
size |
Number
|
2048
|
optional
The width and height, in pixels, of each shadow map. |
softShadows |
Boolean
|
false
|
optional
Whether percentage-closer-filtering is enabled for producing softer shadows. |
darkness |
Number
|
0.3
|
optional
The shadow darkness. |