Smarter translucency sorting #42
+6
-4
@@ -705,16 +705,18 @@ public abstract class RenderSectionManager {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// a rebuild that is no longer tree-sorted must drop its stale planes
|
||||
this.cutPlaneIndex.remove(render);
|
||||
}
|
||||
|
||||
// any crossing up to now was just handled. Dynamic sections keep the submission camera so that
|
||||
// scheduleTranslucencyUpdates still sees movement made during the build.
|
||||
if (latestBuild) {
|
||||
render.lastCameraX = this.cameraPosition.x;
|
||||
render.lastCameraY = this.cameraPosition.y;
|
||||
render.lastCameraZ = this.cameraPosition.z;
|
||||
}
|
||||
} else {
|
||||
// a rebuild that is no longer tree-sorted must drop its stale planes
|
||||
this.cutPlaneIndex.remove(render);
|
||||
}
|
||||
}
|
||||
|
||||
// Section MetadataSink: mirrors a section's packed metadata into the graph-search lattice on every
|
||||
|
||||
Reference in new issue
Block a user