translucentDepthWrite property

  1. @override
bool get translucentDepthWrite

Whether this translucent material writes the nearest fragment depth.

Most alpha-blended surfaces leave this off. Refractive surfaces can turn it on so nearer glass wins within one draw even when its triangles are not ordered back-to-front.

Implementation

@override
bool get translucentDepthWrite => transmission > 0.0;