vpEnv* pEnv_myEnv = new vpEnv();
pEnv_myEnv->setName( "myEnv" );
pEnv_myEnv->setDate( 22 , 6 , 2002 );
pEnv_myEnv->setTimeOfDay( 12.000000f );
pEnv_myEnv->setTimeMultiplier( 1.000000f );
pEnv_myEnv->setEphemerisUpdateInterval( 0.000000f );
pEnv_myEnv->setReferencePosition( -96.790001f , 32.790001f );
pEnv_myEnv->setEphemerisTimeZoneOffset( -10000 );
pEnv_myEnv->setSkyColor( 0.513725f , 0.701961f , 0.941176f , 1.000000f );
pEnv_myEnv->setVisibilityType( vpEnvFx::VISIBILITY_TYPE_PIXEL_EXP2 );
pEnv_myEnv->setVisibilityRangeOnset( 0.000000f );
pEnv_myEnv->setVisibilityRangeOpaque( 80000.000000f );
pEnv_myEnv->setVisibilityColor( 1.000000f , 1.000000f , 1.000000f , 1.000000f );
pEnv_myEnv->setLocalViewerEnable( false );
pEnv_myEnv->setTwoSidedLightingEnable( false );
pEnv_myEnv->setAmbientLightingColor( 0.000000f , 0.000000f , 0.000000f , 1.000000f );
pEnv_myEnv->setLightColorScale( vpEnv::COLOR_AMBIENT , 1.000000f );
pEnv_myEnv->setLightColorScale( vpEnv::COLOR_DIFFUSE , 1.000000f );
pEnv_myEnv->setLightColorScale( vpEnv::COLOR_SPECULAR , 1.000000f );
pEnv_myEnv->setDominantCelestialLightingEnable( false );
s_pInstancesToUnref->push_back( pEnv_myEnv );
初始化vpEnv环境设置

被折叠的 条评论
为什么被折叠?



