njSetLightRange Japanese
<-|INDEX|->
Sets the limit distance of a light created with njCreateLight.

FORMAT

#include <NINJA.H> 
void njSetLightRange( *ptr, nrang, frang )
NJS_LIGHT *ptr
Float nrang
Float frang

PARAMETERS

*ptr
light pointer
nrang
forward limit distance
frang
backward limit distance

RETURN VALUE

None

ERROR VALUE

None

FUNCTION

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.

EXAMPLE

#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);

NOTES


RELATED TOPICS

njCreateLight()
njSetLightAngle()

njSetLightRange
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997