#include <nnsys/g3d/glbstate.h>
void
NNS_G3dGlbLightVector(
GXLightId lightID,
fx16 x,
fx16 y,
fx16 z
);
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 |
None.
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.
2004/08/02 Initial version.
CONFIDENTIAL