mapspinner 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/quadtree.js +1 -1
package/package.json
CHANGED
package/src/quadtree.js
CHANGED
|
@@ -91,7 +91,7 @@ export class Quadtree {
|
|
|
91
91
|
// 20km). Shrinking the penalty-free near radius lets the far-LOD falloff coarsen MORE of the
|
|
92
92
|
// off-screen / past-horizon field, cutting peak visible leaves toward ~600-900 (precondition
|
|
93
93
|
// for the 512 layer cap). These are THE only values -- no device tier.
|
|
94
|
-
const near = Math.max(this._camAlt * 2.0, horizon * 0.
|
|
94
|
+
const near = Math.max(this._camAlt * 2.0, horizon * 0.2, 10000.0);
|
|
95
95
|
// floor 0.5 (was 0.18): past the horizon the split may HALVE, not crush to ~1/5 (which was
|
|
96
96
|
// collapsing near-field detail on descent). Foreground (latC<near) stays fall=1 -> full LOD.
|
|
97
97
|
const fall = 1.0 / (1.0 + Math.max(0.0, latC - near) / near);
|