This program tests a simple combination of lighting and texture. You can control each color component of the light, ambient, and material. Several TEV operations are also available.
| Functions | Parameters | Description |
GXInitLightPos |
Position coordinate (x, y, z) | Various values. |
GXInitLightColor |
Light color | Various values. |
GXSetChanCtrl |
Color channel ID | Always GX_COLOR0A0. |
| Channel enable | Always GX_ENABLE. |
|
| Ambient color source | Always register source. | |
| Material color source | Always register source. | |
| Light mask | Always GX_LIGHT0. |
|
| Diffusion function | Always GX_DF_CLAMP. |
|
| Attenuation function | Always GX_AF_NONE. |
|
GXSetChanAmbColor |
Ambient color | Various values. |
GXSetChanMatColor |
Material color | Various values. |
GXSetTevOp |
TEV stage ID | Always GX_TEVSTAGE0 |
| Mode | GX_MODULATE, GX_DECAL, GX_PASSCLR, GX_REPLACE. |
START exits the test.
The Control Stick moves the light.
The C Stick rotates the model.
The A button changes the model.
The B button changes the TEV operation mode.
The X/Y buttons select an item to control in the following order:
[ Ambient (R-G-B) -- Light (R-G-B) -- Material (R-G-B) ]
The L/R triggers change the value of the selected item.
A textured dodecahedron with white light. TEV process is GX_MODULATE.

A textured dodecahedron with white light. TEV process is GX_DECAL.

None.
2006/03/01 Initial version.
CONFIDENTIAL