#include <revolution/gx.h>
void GXGetLightDir(
const GXLightObj* lt_obj,
f32* nx,
f32* ny,
f32* nz );
| lt_obj | Pointer to a light object. |
|---|---|
| nx | X component of the light normal |
| ny | Y component of the light normal |
| nz | Z component of the light normal |
None.
This function returns the direction of the light from a light object. Use the GXInitLightDir, GXInitLightDirv, GXInitSpecularDir or GXInitSpecularDirv function to set the light direction.
2006/03/01 Initial version.
CONFIDENTIAL