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:
Sameh Khamis committed 2026-11-07 02:36:39 -08:00
1 parent 2cc226c1f9
commit ef61be2b3b
3 files changed
+56 -4

No files matched your search

+2 -4
View File
@@ -7,6 +7,7 @@ import {
import {
createIconSet,
ICON_CULL_LIFT,
ICON_CULL_LIFT_BELOW_M,
ICON_RECEDES,
ICON_ROTATES,
} from './iconSet.js';
@@ -42,9 +43,6 @@ const COCKPIT_SCALE_BY_DISTANCE = new Cesium.NearFarScalar(
8000000,
0.65,
);
/** Contacts drawn below this height (m) are judged for the horizon a little
* above the ellipsoid (ICON_CULL_LIFT). */
const CULL_LIFT_BELOW_M = 10;
/**
* An aircraft layer's contacts as one icon set: each row's motion segment
@@ -333,7 +331,7 @@ export function createAircraftIcons({
row,
ICON_CULL_LIFT,
Number.isFinite(info?.renderAltitudeM) &&
info.renderAltitudeM < CULL_LIFT_BELOW_M,
info.renderAltitudeM < ICON_CULL_LIFT_BELOW_M,
);
set.setAlpha(row, state.records.missingPolls.get(icao24) ? 0.45 : 1);
}