Draw FIRMS detections from a GPU icon set

This commit is contained in:
Sameh Khamis committed 2026-11-03 22:09:57 -08:00
1 parent 8aaf5564d7
commit c9f1fcd425
11 files changed
+318 -322

No files matched your search

+5 -13
View File
@@ -8,7 +8,7 @@ export const REFRESH_INTERVAL_MS = 600_000;
/**
* LOD bands keyed by camera height. `cells` bands render aggregated
* ground-clamped heat rectangles; `detections` bands (< ~750km plus the
* local band) render individual fire detections as glow-sprite billboards.
* local band) render individual fire detections as glow-sprite icons.
* Labels in every band go through the shared screen-space greedy declutter
* (hard cap MAX_AMBIENT_LABELS) — there are no per-band label knobs.
*/
@@ -73,20 +73,12 @@ export const LABEL_MIN_SEP_PX = 150;
export const LABEL_VIEW_MARGIN_PX = 16;
/**
* Anchors below this height get a separate LIFTED point for occlusion tests
* (never for rendering). Mirrors the flights layer's `cullPosition` idiom
* (`renderAltitudeM < 10` → test at 12 m): `fireAnchorHeight` is ground floor
* + lift, and in negative-geoid coastal regions that lands a few tens of
* metres BELOW the WGS84 ellipsoid — EllipsoidalOccluder then judges such a
* point "beyond the horizon" while its true-surface neighbours stay visible,
* so near-limb fires would blink out for a datum reason.
* Glow sprites are rasterised once per colour at the largest core size
* (frpPixelSize tops out at 28 px, a 56 px sprite) and drawn smaller per fire:
* the gradient stops are relative, so the glow keeps its shape at any size.
*/
export const CULL_LIFT_THRESHOLD_M = 10;
/** Height of the lifted occlusion-test point (flights uses the same 12 m). */
export const CULL_LIFT_M = 12;
export const GLOW_SPRITE_PX = 56;
/** Color stops shared by cell heat fills and detection glow sprites. */