radianceComplete property

Future<void> get radianceComplete

Completes once every roughness band of prefilteredRadiance has been submitted.

An environment is usable as soon as it is constructed, but its radiance is prefiltered a band at a time over the following frames so one oversized draw cannot stall the display (see prefilterEquirectRadianceProgressive). Until this completes, specular reflections read the bands that have landed and sharpen as the rest arrive. Await it before reading the radiance back or capturing a frame that must show the finished environment.

Already complete for an environment built from pre-baked radiance.

Implementation

Future<void> get radianceComplete =>
    _radianceFill?.done ?? Future<void>.value();