Smarter translucency sorting #42

Merged
embeddedt merged 24 commits from rdh/celeritas:ts into stonecutter 2026-09-16 11:25:42 -04:00
Showing only changes of commit b80485bcbb - Show all commits
@@ -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