pix-sub

Description

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.

Coverage

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).

Using the Demo

The A button toggles the animation on and off.
The Control Stick moves the camera position.
PAUSE exits the test.

Snapshot

pix-sub-1.jpg

Required Data Files

$REVOLUTION_SDK_ROOT/dvddata/gxTextrs.tpl

Revision History

2006/03/01 Initial version.


CONFIDENTIAL