lit-dist-atn

Description

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

Coverage

Functions Parameters Description
GXInitLightAttn Angular Attenuation Coefficients Fixed values: ( 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.

Using the Demo

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

2006/03/01 Initial version.


CONFIDENTIAL