*ptr | Pointer to light source |
nrang | Front distance limit |
frang | Back distance limit |
#include <Shinobi.h> : NJS_LIGHT light; sbInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1); njCreateLight(&light, NJD_SPEC_POINT); : /* Front distance limit of the point light source with specula is set to 20.f and the back distance limit to 80.f */ njSetLightRange(&light, 20.f, 80.f);