GXGetLightAttnA

C Specification

#include <revolution/gx.h>
void GXGetLightAttnA(
const GXLightObj*   lt_obj,
f32*                a0,
f32*                a1,
f32*                a2 );

Arguments

lt_obj Pointer to a light object
a0 Returns the angle attenuation coefficient 0
a1 Returns the angle attenuation coefficient 1
a2 Returns the angle attenuation coefficient 2

Return Values

None.

Description

This function returns coefficients used in the lighting attenuation calculation for a given light object. The memory for the light object must be allocated by the application. The parameters a0, a1, and a2 are used for angular (spotlight) attenuation. These parameters may be set by GXInitLightAttn, GXInitLightAttnA, GXInitLightSpot, and GXInitLightShininess.

See Also

GXInitLightAttn
GXInitLightAttnA

Revision History

03/01/2006 Initial version.