#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 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.
08/02/2004 Initial version.
CONFIDENTIAL