Closed NotStirred closed 2 years ago
More tests to come, once I get around to writing them
I'd like to write some debug output for runtime that verifies the state of the heightmap tree for each column
Once I have, I'll be much more confident to merge
SurfaceTrackerSection
was split into a base classSurfaceTrackerNode
, and two derived classes:SurfaceTrackerBranch
,SurfaceTrackerLeaf
, which splits their implementation making it far simpler.All of the
Light
specificSurfaceTrackerSection
stuff is now gone, leaving only theLightSurfaceTrackerWrapper
and the light cube implementation remaining.SurfaceTrackerBranch
es have arequiredChildren
value, which for scale 1 branches is the number of their children (leaves) with a cube loaded. Any node withrequiredChildren
will be required by its parent. If therequiredChildren
is 0, all children can be unloaded.