*ptr | Pointer to light source |
dx | X coordinate of light source |
dy | Y coordinate of light source |
dz | Z coordinate of light source |
#include <Shinobi.h> : NJS_LIGHT light; sbInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1); njCreateLight(&light, NJD_DIR_LIGHT); : /* Set light direction vector of parallel light source to (1,0,0) */ njSetLightDirection(&light, 1.f, 0.f, 0.f);