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

Method GetSortValue

trinity/Tr2Transform.cpp:271–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271float Tr2Transform::GetSortValue()
272{
273 Vector3 d = Tr2Renderer::GetViewPosition() - m_worldTransform.GetTranslation();
274 float distance = Length( d );
275 return distance * m_sortValueMultiplier;
276}
277
278// --------------------------------------------------------------------------------
279// Description:

Callers 2

RenderVolumetricsMethod · 0.45
RenderMethod · 0.45

Calls 3

GetViewPositionFunction · 0.85
LengthFunction · 0.85
GetTranslationMethod · 0.80

Tested by

no test coverage detected