This program shows an easy shadow volume method, which is one of the best examples of subtract mode pixel operation. It stores stencil values for shadow volume algorithm on the alpha plane and uses subtractive operation for those values.
Subtract pixel operation.
| Functions | Parameters | Description |
GXSetBlendMode |
type |
GX_BM_NONE, GX_BM_BLEND, GX_BM_SUBTRACT |
src_factor |
GX_BL_ONE, GX_BL_ZERO. | |
dst_factor |
GX_BL_ONE, GX_BL_ZERO, GX_BL_SRCCLR. | |
op |
GX_LO_NOOP (does not affect). |
The A button toggles the animation ON/OFF.
The main stick moves the camera position.
PAUSE exits the test.

$REVOLUTION_SDK_ROOT/dvddata/gxTextrs.tpl
03/01/2006 Initial version.