Skip to content

alphaTestRef

uniform float alphaTestRef;

This value stores the alpha value that Iris recommends you discard pixels bellow. This value is commonly 0.1, but can change in certain cases (therefore it is recommended to use the uniform over a hardcoded value). The value is also affected by the alphaTest directive. It is normally used like this:

if (albedoOut.a < alphaTestRef) discard;