Alpha-Test

From TouchDesigner Documentation
Revision as of 10:38, 5 October 2017 by Sherryk (talk | contribs) (Created page with "The '''Alpha-Test''' is a process to discard pixels, like the Depth-Test. It's available on the common page of all MATs under the name 'Discard Pixels Based on Alpha'. The...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The Alpha-Test is a process to discard pixels, like the Depth-Test. It's available on the common page of all MATs under the name 'Discard Pixels Based on Alpha'. The Alpha-Test compares the final alpha of the pixel, after the pixel shader has run, against a threshold value. If the alpha is less than the threshold value, the pixel is discarded. The Alpha-Test is performed before the Depth-Test and before Alpha-Blending.

One common use of the Alpha-Test is to discard pixels based on an alpha map, to create a cut-out geometry based on the map.