#include <nitro/gx/g3x.h>
void G3X_AlphaTest(BOOL enable, int ref);
enable | Sets whether a-test occurs |
ref | When the alpha-test is performed, pixels where alpha<=ref will not be rendered |
None.
This function controls the alpha-test. When enable
is not FALSE
, the alpha value of the fragment after texture blending is compared to ref
. The fragment is not rendered if it is less than the set value. When enable
is FALSE
, alpha testing does not occur.
Caution: A polygon (wire frame display) is not drawn when alpha=0 and ref is set as 31.
01/19/2004 Initial version