In the octree, only the bits below the current level are important to store. The remaining bits existence actually prevents chunks of the octree from being moved at a higher level because then the mortons would be inconsistent. Fix this by masking out the prefix and computing the prefix as the tree is traversed.
In the octree, only the bits below the current level are important to store. The remaining bits existence actually prevents chunks of the octree from being moved at a higher level because then the mortons would be inconsistent. Fix this by masking out the prefix and computing the prefix as the tree is traversed.