lit-dist-atn

Description

This program tests distance attenuation control. One light is shined on the standing wall at a fixed interval.

Coverage

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.
GXSetChanAmbColor Ambient color Three colors.
GXSetChanMatColor Material color Only one color.

Operation Method

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.

Snapshot

lit-dist-atn.jpg (6258 bytes)

Required Data Files

None.

Revision History

03/01/2006 Initial version.