void njSetLightRange( *ptr, nrang, frang ) NJS_LIGHT *ptr Float nrang Float frang
*ptr | ライトのポインタ |
nrang | 前方の限界距離 |
frang | 後方の限界距離 |
: NJS_LIGHT light; : 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);