mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +00:00
Merge origin/main: shipwrecks, news, transit fronts, signal-lost trails and uncredited photos on the renderer's ports
Upstream's layers and changes are carried onto the ports, with no Cesium outside src/render and no reach into the viewer: - Shipwrecks draw as one icon set, clicked through the input dispatcher. - News draws through draw sets, the camera port and the input dispatcher; its beacons pulse each frame through the frame port. - The scene occlusion probe moves into src/render/cesium and reaches detection through a new application hook, createOcclusionProbe; its private Cesium reads go through internals.js. - Flight and military trails, the stale and SIGNAL LOST cue, coasting and following the world clock run on the draw and frame ports. GPU icons follow the scene clock while the world clock is followed, and fade when stale. A report that holds is not planned again every tick. - Vessels are keyed by their record id. The stub boot now enables military, shipwrecks and news as well.
This commit is contained in:
commit
a755f63638
331 files changed
+40654
-1666
No files matched your search
@@ -723,9 +723,15 @@ export function createAircraftModels({
|
||||
}
|
||||
const record = state._trackedModel;
|
||||
// The tracked aircraft uses the same dominant light tint as the fleet;
|
||||
// the IR boost removes the remaining diffuse hint with flat white.
|
||||
if (!record.tint)
|
||||
record.tint = state._irBoost ? WHITE : rgba(_modelColor(icao24));
|
||||
// the IR boost removes the remaining diffuse hint with flat white. It
|
||||
// fades like the tracked billboard while the plane is stale.
|
||||
const base = state._irBoost ? WHITE : rgba(_modelColor(icao24));
|
||||
_treat(record, {
|
||||
base,
|
||||
alpha: parts.tracking._trackedStaleCue?.(icao24)?.dimmed
|
||||
? policy.STALE_ALPHA
|
||||
: base[3],
|
||||
});
|
||||
// Placed while it loads too: its first drawn frame is at this placement.
|
||||
const displayPos = _modelDisplayPosition(icao24, pos);
|
||||
if (!displayPos) {
|
||||
@@ -764,6 +770,9 @@ export function createAircraftModels({
|
||||
*/
|
||||
|
||||
function _fleetTick() {
|
||||
// Every frame, shown or not: the tracked label's stale cue follows the
|
||||
// clock. (The tracked trail moves on in its own pass before each frame.)
|
||||
if (state._viewer) parts.tracking._staleCueTick?.();
|
||||
try {
|
||||
_fleetPass();
|
||||
} finally {
|
||||
@@ -796,6 +805,8 @@ export function createAircraftModels({
|
||||
function _fleetPass() {
|
||||
const icons = state._icons;
|
||||
if (!state._viewer || !icons || !icons.show) return;
|
||||
// Following the world clock, the icons move on its time.
|
||||
parts.icons._syncMotionClock?.();
|
||||
const nowMs = focusNowMs(Date.now());
|
||||
|
||||
if (nowMs - state._lastFleetTickMs < policy.FLEET_DR_INTERVAL_MS) return;
|
||||
|
||||
Reference in new issue
Block a user