drawsNothing property

  1. @override
bool get drawsNothing

Whether this material currently draws nothing at all, keeping its render items out of every pass (color, depth prepass, shadows).

Refreshed per frame by the scene pre-pass, so a material can toggle it live. The base material always draws; the shadow catcher returns true at shadowIntensity == 0 as a true early-out.

Implementation

@override
bool get drawsNothing => _shadowIntensity == 0;