Skip to content

Commit

Permalink
add angle-based section visibility path occlusion, cherry picked from…
Browse files Browse the repository at this point in the history
… douira:sharp-angle-traversal-occlusion
  • Loading branch information
douira committed Oct 26, 2024
1 parent d1d77bb commit 2426c78
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ private void processQueue(ReadQueue<RenderSection> readQueue,

// occlude paths through the section if it's being viewed at an angle where
// the other side can't possibly be seen
sectionVisibilityData &= getAngleVisibilityMask(viewport, section);
sectionVisibilityData &= getAngleVisibilityMask(this.viewport, section);

// When using occlusion culling, we can only traverse into neighbors for which there is a path of
// visibility through this chunk. This is determined by taking all the incoming paths to this chunk and
// creating a union of the outgoing paths from those.
Expand Down

0 comments on commit 2426c78

Please sign in to comment.