GXGetLightDir

C Specification

#include <revolution/gx.h>
void GXGetLightDir(
const GXLightObj*   lt_obj,
f32*                nx,
f32*                ny,
f32*                nz );

Arguments

lt_obj Pointer to a light object
nx Returns the X-coordinate of light normal
ny Returns the Y-coordinate of light normal
nz Returns the Z-coordinate of light normal

Return Values

None.

Description

This function returns the direction of the light from a light object. Use GXInitLightDir, GXInitLightDirv, GXInitSpecularDir, or GXInitSpecularDirv to set the light direction.

See Also

GXInitLightDir

Revision History

03/01/2006 Initial version.