| 1634 | } |
| 1635 | |
| 1636 | void 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 | |
| 1652 | void EveChildMesh::AddLight( Tr2Light* newLight ) |
| 1653 | { |
nothing calls this directly
no test coverage detected