FGI Only Features
- Last UpdatedApr 07, 2023
- 1 minute read
These parameters are used only by FGI shaders.
Range
To save processing power, you can define the range where the Shadow Maps are calculated.
Displaying a scene with tens or with hundreds of shadow casting lights may kill the application's frame rate. It is better to display only the Shadow Maps near the Camera.

To enable this feature the user must set the shadowMaps\innerRange and shadowMaps\outerRange global parameters to a positive value.
When either one of these parameters is zero, the feature is disabled.
As the above picture shows, the outerRange is the maximum distance where the Shadow Maps are active. The innerRange is used to define a fade-out area.
Color
Shadows color and contribution can be set for each one of the FGI states:
-
State(n) à shadowMaps\color, shadowMaps\contribution
The following parameters are instead used by the Cascade Shadow Maps:
-
State(n) à shadow\color, shadow\contribution
Unused parameters
The following Light parameters are not used by FGI shadow rendering:
-
Light à light.shadow\noDistanceTest
-
Light à light.shadow\color