GXGetLightAttnK

C Specification

#include <revolution/gx.h>
void GXGetLightAttnK(
const GXLightObj*   lt_obj,
f32*                k0,
f32*                k1,
f32*                k2 );

Arguments

lt_obj Pointer to a light object
k0 Returns the distance attenuation coefficient 0
k1 Returns the distance attenuation coefficient 1
k2 Returns the distance attenuation coefficient 2

Return Values

None.

Description

This function returns coefficients used in the lighting attenuation calculation of a given light object. The memory for the light object must be allocated by the application. The coefficients k0, k1, and k2 are used for distance attenuation. These coefficients may be set using GXInitLightAttn, GXInitLightAttnK, GXInitLightDistAttn, and GXInitLightShininess.

See Also

GXInitLightAttn
GXInitLightAttnK

Revision History

03/01/2006 Initial version.