NNS_G3dGlbLightVector

Syntax

#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 a 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. The arguments may take values from -FX16_ONE to FX16_ONE-1. Set a unit vector because the hardware does not normalize vectors.

See Also

NNS_G3dGlbLightColor

Revision History

2004/08/02 Initial version.


CONFIDENTIAL