njSetLightDirection | Japanese |
---|---|
<-|INDEX|-> | |
Sets the directrion of light defined by njCreateLight. |
#include <NINJA.H> void njSetLightDirection( *ptr, dx, dy, dz ) NJS_LIGHT *ptr Float dx Float dy Float dz
#include <NINJA.H> ........... NJS_LIGHT light; njInitSystem(); njCreateLight(&light, NJD_DIR_LIGHT); ........... /* Set direction vector of parallel light source beam to (1,0,0) */ njSetLightDirection(&light, 1.f, 0.f, 0.f);
njSetLightDirection | <-|INDEX|-> |
---|