Tag Info

New answers tagged


Unity cannot know which triangles are eliminated in the GPU shaders, it counts the number of triangles sent to the GPU, not just the ones that end up drawn. Using the discard keyword forces the shader to run on all pixels, breaking the GPU's hidden surface removal optimization. That is on top of processing all the triangles. If you want to eliminate ...

Top 50 recent answers are included