SetShadowRange

Description

Sets the range from the camera that shadows will be drawn. Ideally this would be set to the camera far range from SetCameraRange, but drawing shadows all the way to the far plane may take some quality away from those shadows closer to the camera. Therefore setting the shadow range lower than the camera far range may improve shadow quality at the expense of distant objects not having shadows. The actual shadow range will be the lower value of the the camera far range and this shadow range, so you can safely set it larger than the camera far range without any effect on quality. If you later adjust the camera far range then the shadow range will not change accordingly, you must set it separately.

Use a value of -1 to ignore this value and always use the camera far range for shadows. By default this is set to -1.

Definition

SetShadowRange( range )

Parameters