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

Method GetLights

trinity/Eve/SpaceObject/Children/EveChildMesh.cpp:1636–1650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1634}
1635
1636void EveChildMesh::GetLights( Tr2LightManager& lightManager ) const
1637{
1638 if( m_lights.empty() || !m_display )
1639 {
1640 return;
1641 }
1642
1643 auto [bones, boneCount] = GetBoneTransforms();
1644
1645 for( auto it = std::begin( m_lights ); it != std::end( m_lights ); ++it )
1646 {
1647 ( *it )->AddLight( lightManager, m_worldTransform, 1.0f, bones, boneCount );
1648 ( *it )->SetBrightnessMultiplier( m_activationStrength );
1649 }
1650}
1651
1652void EveChildMesh::AddLight( Tr2Light* newLight )
1653{

Callers

nothing calls this directly

Calls 5

emptyMethod · 0.80
beginFunction · 0.50
endFunction · 0.50
AddLightMethod · 0.45

Tested by

no test coverage detected