| 117 | } |
| 118 | |
| 119 | void EvePlanet::UpdatePlanetVisibility( const EveUpdateContext& updateContext, float renderScale ) |
| 120 | { |
| 121 | const auto scaledTransform = CalculatePlanetScaleTransform( m_worldTransform, renderScale ); |
| 122 | |
| 123 | // pixel diameters, also for the max possible |
| 124 | m_estimatedPixelDiameter = EstimatePixelDiameterPos( reinterpret_cast<const Vector3*>( &scaledTransform._41 ), 1.f / Tr2Renderer::GetProjectionTransform()._11, renderScale ); |
| 125 | m_estimatedMaxPixelDiameter = EstimatePixelDiameterPos( reinterpret_cast<const Vector3*>( &scaledTransform._41 ), tanf( FOV_MIN / 2.f ), renderScale ); |
| 126 | |
| 127 | for( auto it = m_effectChildren.begin(); it != m_effectChildren.end(); ++it ) |
| 128 | { |
| 129 | ( *it )->UpdateVisibility( updateContext, scaledTransform, m_lodLevel ); |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | void EvePlanet::UpdateZOnlyVisibility( const EveUpdateContext& updateContext ) |
| 134 | { |
no test coverage detected