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

Method UseWithScreenSize

trinity/Tr2MeshBase.cpp:618–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618void Tr2MeshBase::UseWithScreenSize( float screenSize, float worldRadius ) const
619{
620 if( auto geometry = GetGeometryResource() )
621 {
622 if( auto lod = geometry->GetMeshLod( m_meshIndex, screenSize ) )
623 {
624 for( auto areaType : m_areaLookupArray )
625 {
626 if( areaType )
627 {
628 for( auto& area : *areaType )
629 {
630 if( area && area->GetMaterialInterface() )
631 {
632 area->GetMaterialInterface()->UsedWithScreenSize( screenSize, worldRadius, lod->m_uvDensities );
633 }
634 }
635 }
636 }
637 }
638 }
639}
640
641Tr2RaytracingMesh* Tr2MeshBase::GetOrCreateRtMesh()
642{

Callers 4

UpdateVisibilityMethod · 0.80
UpdateVisibilityMethod · 0.80
UpdateVisibilityMethod · 0.80
UpdateVisibilityMethod · 0.80

Calls 3

GetMaterialInterfaceMethod · 0.80
GetMeshLodMethod · 0.45
UsedWithScreenSizeMethod · 0.45

Tested by

no test coverage detected