This program tests distance attenuation control. One light is shined on the standing wall at a fixed interval.
| Functions | Parameters | Description |
GXInitLightAttn |
Angle attenuation coefficients | Fixed (a0=1, a1=0, a2=0). |
| Distance attenuation coefficients | Some appropriate value sets. | |
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_SPOT. | |
|
Ambient color | Three colors. |
|
Material color | Only one color. |
START exits the test.
The L and R Buttons change the distance attenuation coefficients (obtained from a table).
The Control Stick moves the camera location.

None.
03/01/2006 Initial version.