renderIfActive

open fun renderIfActive(active: Boolean, state: BlockState, render: Runnable)

Runs [render] in the transparent background scope when XRay applies to the block being rendered.