globalIlluminationProbeGrid property
IrradianceProbeGrid?
get
globalIlluminationProbeGrid
The probe lattice the global-illumination field is filling this frame, or null when the field is off or has not run a frame yet.
The placement depends on the volume mode, the camera, and the scene bounds, and is resolved per frame inside the renderer, so this is the only reliable source for drawing where the probes actually are.
Implementation
IrradianceProbeGrid? get globalIlluminationProbeGrid {
final placement = _irradianceField.placement;
final layout = _irradianceField.layout;
if (placement == null || layout == null) return null;
return IrradianceProbeGrid(
origin: placement.origin,
spacing: placement.spacing,
counts: layout.resolution,
);
}