mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Pin how a horizon-culled draw set's lift stands in for the aircraft layers'
The aircraft layers lift a contact for the horizon test only when its fix is below 10 m; a horizon-culled set on the Cesium draw port lifts every row drawn below 12 m, and the contract has no per-row lift to say otherwise. The 10 m threshold is now named beside the cull height (iconSet's ICON_CULL_LIFT_BELOW_M, which the aircraft icon layer reads), with what the two rules share and where they part: they agree on every row the aircraft rule lifts and every row drawn at 12 m or more, and the port judges the rest higher (a contact between 10 and 12 m, or one drawn below its fix), so it never hides what the aircraft rule shows. No renderer change: a 10 m threshold in the port would change the ships and fires it already draws.
This commit is contained in:
1 parent
2cc226c1f9
commit
ef61be2b3b
3 files changed
+56
-4
No files matched your search
@@ -65,6 +65,22 @@ export const ICON_RECEDES = 4;
|
||||
export const ICON_CULL_LIFT = 8;
|
||||
/** The ellipsoid height a CULL_LIFT row is raised to for the horizon test. */
|
||||
export const ICON_CULL_HEIGHT_M = HORIZON_LIFT_M;
|
||||
/**
|
||||
* Contacts whose fix is below this height (m) get CULL_LIFT in the aircraft
|
||||
* layers' icon sets; theirs are the only rows flagged by height.
|
||||
*
|
||||
* Through the draw port a `horizonCull` set flags every row, so every row
|
||||
* drawn below ICON_CULL_HEIGHT_M is lifted. The two agree on every row this
|
||||
* rule flags (lifted either way) and every row drawn at or above
|
||||
* ICON_CULL_HEIGHT_M (no lift either way). They differ only on rows this
|
||||
* rule leaves unflagged (fix at or above 10 m) while drawn below 12 m: a
|
||||
* contact between 10 and 12 m (judged up to 2 m higher), or one whose drawn
|
||||
* position sits lower than its fix (a climb-out from a lower earlier fix, a
|
||||
* dead-reckoned ground drift). The port judges those higher, so it never
|
||||
* hides what this rule shows, and shows near-ground contacts at the limb that
|
||||
* this rule culled, which is what the lift is for.
|
||||
*/
|
||||
export const ICON_CULL_LIFT_BELOW_M = 10;
|
||||
|
||||
/** Move the epoch once render times are this many seconds from it. */
|
||||
const REBASE_AFTER_SEC = 1800;
|
||||
|
||||
Reference in new issue
Block a user