*ptr | Pointer to light source |
px | X coordinate of light source |
py | Y coordinate of light source |
pz | Z coordinate of light source |
#include <Shinobi.h> : NJS_LIGHT light; sbInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1); njCreateLight(&light, NJD_POINT_LIGHT); : /* Set point light source position to (10, 0, -10) */ njSetLightLocation(&light, 10.f, 0.f, -10.f);