njSetLightRange | Japanese |
---|---|
<-|INDEX|-> | |
Sets the limit distance of a light created with njCreateLight. |
#include <NINJA.H> void njSetLightRange( *ptr, nrang, frang ) NJS_LIGHT *ptr Float nrang Float frang
![]() | Although nrang is set to 1.f by default, this setting should take into account the size of the model itself, as well as the distance between models. |
#include <NINJA.H> ........... NJS_LIGHT light; njInitSystem(); njCreateLight(&light, NJD_SPEC_POINT); ........... /* * Set the forward limit distance of a specular point light source to 20.f * and the backward limit distance to 80.f. */ njSetLightRange(&light, 20.f, 80.f);
njSetLightRange | <-|INDEX|-> |
---|