void njCnkSetEasyLightColor( r, g, b ) float r float g float b
r | ライトの赤の成分(0〜1.f) |
g | ライトの緑の成分(0〜1.f) |
b | ライトの青の成分(0〜1.f) |
: njInitVertexBuffer( 1000000, 0, 1000, 0, 0 ); njInitMatrix( matrix, 8 , 0); njInit3D( vbuf, 4096 ); njInitView( &view ); njSetView( &view ); njCnkSetEasyLight( 0.f, 0.f, 1.0f ); njCnkSetEasyLightIntensity( 1.0f, 0.0f ); njCnkSetEasyLightColor( 0.8f, 0.8f, 1.0f ); njClearMatrix(); njTranslate( NULL, 0.f, 0.f, -10.f ); njRotateXYZ( NULL, rx,ry,rz ); njCnkEasyDrawObject( object );