globalIllumination property

GlobalIlluminationSettings globalIllumination
final

World-space global illumination settings. Off by default; set GlobalIlluminationSettings.enabled to turn the irradiance field on. Requires a PerspectiveCamera (the injection scatter reconstructs world positions from the camera's perspective depth); it is skipped for other camera types, and it forces the depth prepass with normals on.

Implementation

final GlobalIlluminationSettings globalIllumination =
    GlobalIlluminationSettings();