| 1740 | } |
| 1741 | |
| 1742 | void EveSpaceObject2::UpdateRtMesh( const EveUpdateContext& updateContext ) |
| 1743 | { |
| 1744 | USE_MAIN_THREAD_RENDER_CONTEXT(); |
| 1745 | if( !renderContext.GetCaps().SupportsRaytracing() ) |
| 1746 | { |
| 1747 | return; |
| 1748 | } |
| 1749 | auto areas = m_mesh->GetAreas( TRIBATCHTYPE_OPAQUE ); |
| 1750 | if( !areas->empty() ) |
| 1751 | { |
| 1752 | auto rtMesh = m_mesh->GetOrCreateRtMesh(); |
| 1753 | rtMesh->UpdateRtMesh( m_mesh->GetGeometryResource(), m_mesh->GetMeshIndex(), m_meshScreenSize ); |
| 1754 | |
| 1755 | for( auto it = begin( *areas ); it != end( *areas ); ++it ) |
| 1756 | { |
| 1757 | ( *it )->GetOrCreateRtMeshArea(); |
| 1758 | } |
| 1759 | } |
| 1760 | } |
| 1761 | |
| 1762 | void EveSpaceObject2::UpdateRtSkeleton() |
| 1763 | { |
nothing calls this directly
no test coverage detected