NNS_G3dGlbLightVector

C Specification

#include <nnsys/g3d/glbstate.h>
void
NNS_G3dGlbLightVector(
GXLightId   lightID,
fx16        x,
fx16        y,
fx16  z
);

Arguments

lightID Light number (0 - 3)
x x-component of the light directional vector
y y-component of the light directional vector
z z-component of the light directional vector

Return Values

None.

Description

This function configures the light directional vector in the global state that is kept in the G3D library. Select one of four lights with lightID, and set the light vector with x, y, and z. Anything from -FX16_ONE to FX16_ONE-1 can be used as an argument. Set a unit vector because the hardware does not normalize vectors.

See Also

NNS_G3dGlbLightColor

Revision History

08/02/2004 Initial version.


CONFIDENTIAL