MCPcopy Create free account
hub / github.com/carbonengine/trinity / IsVisible

Method IsVisible

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:1826–1831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1824}
1825
1826bool EveSpaceObject2::IsVisible( const EveUpdateContext& updateContext ) const
1827{
1828 auto& frustum = updateContext.GetFrustum();
1829 return frustum.IsSphereVisible( m_boundingSphereWorldCenter, m_boundingSphereWorldRadius ) &&
1830 frustum.GetPixelSizeAccrossEst( m_boundingSphereWorldCenter, m_boundingSphereWorldRadius ) >= updateContext.GetVisibilityThreshold();
1831}
1832
1833void EveSpaceObject2::GetRenderables( std::vector<ITr2Renderable*>& renderables, Tr2ImpostorManager* impostors )
1834{

Callers 5

PerformFrustumCullingMethod · 0.45
RenderReflectionPassMethod · 0.45
IsCastingShadowMethod · 0.45
IsCastingShadowMethod · 0.45
IsCastingShadowMethod · 0.45

Calls 4

GetFrustumMethod · 0.80
IsSphereVisibleMethod · 0.80

Tested by

no test coverage detected