Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
VReaperV committed May 17, 2024
1 parent fa8756d commit 461911d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/engine/renderer/Material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1983,8 +1983,15 @@ void MaterialSystem::AddPortalSurfaces() {
return Distance( backEnd.viewParms.orientation.origin, lhs.origin ) - lhs.radius <
Distance( backEnd.viewParms.orientation.origin, rhs.origin ) - rhs.radius;
} );

uint count = 0;
for ( const drawSurfBoundingSphere& sphere : portalBounds ) {
R_MirrorViewBySurface( &portalSurfaces[sphere.drawSurfID] );
count++;
// Limit this a bit until portal visibility readback is done
if ( count > 2 ) {
return;
}
}
}

Expand Down

0 comments on commit 461911d

Please sign in to comment.