This program tests the basic lighting channel controls using one light positioned at the viewpoint and directed down the Z-axis. Three identical models are rendered, each rotating about a different axis. You can select any of the GXDrawDone* procedural models, change ambient and material register colors, and turn smooth shading on and off.
This test uses only the GX_COLOR0 channel.
| Functions | Parameters | Description |
GXSetChanCtrl |
Channel enable | Toggle ON/OFF. |
| Material color source | Always register source. | |
| Ambient color source | Always register source. | |
GXSetChanAmbColor |
Ambient color | Cycles through 6 colors. |
GXSetChanMatColor |
Material color | Cycles through 6 colors. |
The test prints a menu of choices.
The X/Y buttons navigate up and down in the menu.
The L and R buttons cycle through states of the current menu item.
The A button dumps the current state settings.
START exits the test.
Channel disabled, material = red, ambient = black, and model type is cylinder.

Channel enabled. Material = black, ambient = white, and model type is sphere.

Channel enabled. Material = green, ambient = gray, and model type is torus.

Channel enabled. Material=white, ambient=blue, and model type is icosahedron.

None.
2006/03/01 Initial version.
CONFIDENTIAL