- Home /
Do cutout shaders require redraw?
I've read that objects are normally rendered back to front (once occlusion culling is calculated), but transparent objects require redrawing for every transparent pixel. Do cutout shaders also require this redraw, and thus the performance cost?
Comment
Best Answer
Answer by Owen-Reynolds · Aug 14, 2015 at 05:18 PM
Last I heard, objects are drawn in any order, with the Depth buffer handling overlaps (that's what it's for.) Transparent objects need an extra step of sorting back to front, to get the blending correct.
Since cut-outs don't have any blending (each pixel either 100% overwrites the background, or is not drawn at all,) I imagine in theory they can be treated the same as non-transparent objects.