void njSetLightIntensity( *ptr, spc, dif, amb ) NJS_LIGHT *ptr Float spc Float dif Float amb
*ptr | ライトのポインタ |
spc | スペキュラ光の輝度(0〜1.f) |
dif | ディフューズ光の輝度(0〜1.f) |
amb | アンビアント光の輝度(0〜1.f) |
: NJS_LIGHT light; : njCreateLight(&light, NJD_SPEC_DIR); : /* Set the specula diffuse light of the parallel light source with specula to 0.5f */ njSetLightIntensity(&light, 0.5f, 0.5f, 0.f);