Optional
intensityIntensity of the shadow in the [0, 1] range. Default to 1
.
Optional
biasShadow map bias. Default to 0
.
Optional
normalShadow map normal bias. Default to 0
.
Optional
pcfNumber of samples to use for Percentage Closer Filtering calculations in the shader. Increase for smoother shadows, at the cost of performance. Default to 1
.
Optional
depthSize of the depth Texture to use. Default to Vec2(512)
.
Optional
depthFormat of the depth Texture to use. Default to depth24plus
.
Optional
autoWhether the shadow should be automatically rendered each frame or not. Should be set to false
if the scene is static and be rendered manually instead. Default to true
.
The light that will be used to cast shadows.
Base parameters used to create a Shadow.