| 165 | |
| 166 | |
| 167 | EveSpaceScene::EveSpaceScene( IRoot* lockobj ) : |
| 168 | PARENTLOCK( m_backgroundObjects ), |
| 169 | PARENTLOCK( m_planets ), |
| 170 | PARENTLOCK( m_objects ), |
| 171 | PARENTLOCK( m_uiObjects ), |
| 172 | PARENTLOCK( m_curveSets ), |
| 173 | PARENTLOCK( m_lensflares ), |
| 174 | PARENTLOCK( m_distanceFields ), |
| 175 | PARENTLOCK( m_staticParticles ), |
| 176 | PARENTLOCK( m_externalParameters ), |
| 177 | m_display( true ), |
| 178 | m_update( true ), |
| 179 | m_shadowQuality( ShadowQuality::SHADOW_RAYTRACED ), |
| 180 | m_enableShadows( true ), |
| 181 | m_visualizeMethod( VM_NONE ), |
| 182 | m_perFrameDebug( 0.f ), |
| 183 | m_envMapRotation( 0.0f, 0.0f, 0.0f, 1.0f ), |
| 184 | m_backgroundRenderingEnabled( false ), |
| 185 | m_updateContext( 0 ), |
| 186 | m_staticEnvMapHandle( NULL ), |
| 187 | m_envMapHandle( NULL ), |
| 188 | m_envMap1Var( "EnvMap1", m_envMap1 ), |
| 189 | m_envMap2Var( "EnvMap2", m_envMap2 ), |
| 190 | m_reflectionMapVar( "ReflectionMap", m_envMap1 ), |
| 191 | m_reflectionMaskMapVar( "ReflectionMaskMap", m_envMap2 ), |
| 192 | m_depthMapVar( "DepthMap", (ITr2TextureProvider*)nullptr ), |
| 193 | m_envMapTransformVar( "EnvMapTransform", IdentityMatrix() ), |
| 194 | m_reflectionMapTransformVar( "ReflectionMapTransform", IdentityMatrix() ), |
| 195 | m_suncVecVar( "SunVec", Vector3( 0.0f, 0.0f, 1.0f ) ), |
| 196 | m_sharedIndexVertexBufferVar( "SharedIndexVertexBuffer", (ITr2GpuBuffer*)nullptr ), |
| 197 | m_bakedMorphTargetBufferVar( "BakedMorphTargetBuffer", (ITr2GpuBuffer*)nullptr ), |
| 198 | m_nebulaIntensity( 1.f ), |
| 199 | m_currentNebulaIntensity( 1.f ), |
| 200 | m_backgroundReflectionIntensity( 1.f ), |
| 201 | m_defaultDiffuseRoughness( 1.f ), |
| 202 | m_nebulaIntensityVar( "NebulaIntensity", m_nebulaIntensity ), |
| 203 | m_planetScale( 1e6 ), |
| 204 | m_planetCameraScale( 1e6 ), |
| 205 | m_sunColor( 1.0f, 1.0f, 1.0f, 1.0f ), |
| 206 | m_sunColorWithDynamicLights( 1.0f, 1.0f, 1.0f, 1.0f ), |
| 207 | m_currentSunColor( 1.0f, 1.0f, 1.0f, 1.0f ), |
| 208 | m_useSunColorWithDynamicLights( false ), |
| 209 | m_reflectionIntensity( g_eveSpaceSceneDefaultReflectionIntensity ), |
| 210 | m_currentReflectionIntensity( g_eveSpaceSceneDefaultReflectionIntensity ), |
| 211 | m_reflectionBackLightingContrast( 8.0f ), |
| 212 | m_reflectionBackLightingColor( 2.0f, 2.0f, 2.0f, 2.0f ), |
| 213 | m_dynamicObjectReflectionEnabled( true ), |
| 214 | m_velocityMapDirty( false ), |
| 215 | m_virtualCameraSystem(), |
| 216 | m_projection( IdentityMatrix() ), |
| 217 | m_projectionLast( IdentityMatrix() ), |
| 218 | m_jitteredProjection( IdentityMatrix() ), |
| 219 | m_reprojectionMatrix( IdentityMatrix() ), |
| 220 | m_jitter( 0.f, 0.f, 0.f, 0.f ), |
| 221 | m_upscalingAmount( 1.0f ) |
| 222 | { |
| 223 | TriPoolAllocator* allocator = Tr2Renderer::GetPoolAllocator(); |
| 224 | m_primaryBatches[TRIBATCHTYPE_OPAQUE] = CCP_NEW( "EveSpaceScene/m_batches" ) TriRenderBatchAccumulator<EffectKeyGenerator>( allocator ); |
nothing calls this directly
no test coverage detected