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

Method GetRenderPriority

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:3730–3735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3728}
3729
3730float EveSpaceObject2::GetRenderPriority( const ImpostorHash& oldHash, const ImpostorHash& newHash ) const
3731{
3732 float dotView = Dot( oldHash.viewDir, newHash.viewDir );
3733 float dotUp = Dot( oldHash.upDir, newHash.upDir );
3734 return std::max( 1.f - dotView, 1.f - dotUp );
3735}
3736
3737bool EveSpaceObject2::GetImpostorBoundingSphere( Vector4& sphere ) const
3738{

Callers 1

AddMethod · 0.80

Calls 1

DotFunction · 0.50

Tested by

no test coverage detected