#discard

Throwing a pixel of a triangle away instead of drawing it. A pixel shader that calls discard_fragment() writes no color and no depth for that pixel, so whatever is behind shows, and a shape can be cut out of geometry that has no hole in it.

1 shader

All techniques · In the glossary