Multiple States
- Last UpdatedJan 24, 2023
- 1 minute read
The FGI pipeline supports a 'day/night' cycle of states, in which each state contains all the lighting information required to render the scene.
For example:
-
The sun position
-
The ambient color
-
The shadows color
You can specify which lights in the scene affect a certain state to simulate day and night conditions.
You can also specify which lights affect the LightProbes generation and which lights are used in real time.
For each state, a different set of LightProbes Global Illumination data is calculated.
State parameters used during rendering
Some parameters are used during the final rendering of the image, such as:
-
lightsContribution
-
probesContribution
-
shadowsColor (CSM shadows, only when realisticShadows is Off)
-
shadowsContribution (CSM shadows)
State parameters used when generating LightProbes
Some parameters are used only when generating the LightProbes:
-
genAmbientColor
-
genSunContribution
-
genLightsContribution
-
genShadowsColor (CSM shadows, only when realisticShadows is Off)
-
genShadowsContribution (CSM shadows)