This program shows an example of complicated full-scene shadow generation. This method uses object IDs to determine which parts should become shadow. (For details, see the Algorithm Details section.))
This list doesn't contain settings for drawing other than full-scene shadows.
| Functions | Parameters | Description |
GXLoadTexMtxImm |
Matrices | appropriate projection mtx |
| matrix destination | GX_TEXMTX0 | |
| Types | GX_MTX3x4 | |
GXSetNumTexGens |
number of texgens | 1 |
GXSetTexCoordGen |
destination coord | GX_TEXCOORD0 |
| texgen type | GX_TG_MTX3x4 | |
| texgen src | GX_TG_POS | |
| mtx src | GX_TEXMTX0 | |
GXInitTexObj |
Pointer to image data. | Appropriate. |
| width / height | some constant values | |
| Format | GX_TF_RGBA8 | |
| wrap mode(s, t) | GX_CLAMP | |
| mipmap | Always GX_FALSE. |
|
GXLoadTexObj |
Destination texture name. | GX_TEXMAP0 |
GXInvalidateTexAll |
(no parameter) | |
GXSetTexCopySrc |
top / left / width / height | some constant values |
GXSetTexCopyDst |
width / height | some constant values |
| Format | GX_TF_RGBA8 | |
| mipmap filter | GX_FALSE | |
GXCopyTex |
Pointer to image data. | Appropriate. |
| clear operation | GX_TRUE | |
GXSetNumTevStages |
number of TEV stages | 2 |
GXSetTevOrder |
each argument | see algorithm details |
GXSetTevColorIn |
each argument | see algorithm details |
GXSetTevColorOp |
each argument | see algorithm details |
| clamp mode | GX_TC_EQ(stage0), GX_TC_LINEAR(stage1) see algorithm details |
|
GXSetTevColor |
tev color register | GX_TEVREG0 |
| color value | Appropriate. | |
GXPixModeSync |
(no parameter) |
The Menu button exits the test.
The main stick moves camera position.
The sub stick moves light position.
The A button changes display modes.
The B button switches the shadow projection type (perspective/orthographic).
The X button toggles the model size adjustment ON/OFF.
The Y button changes the size of shadow map.

None.
See Section "7.2 ID-Based Full-Scene Shadow Mapping" in "Graphics Library [Application Edition]."
03/01/2006 Initial version.