mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 10:12:18 +00:00
Cut duplicated and dead code across the engines, the layers and the QA scripts
- src/geo drops the ported debug argument checks and the tests that bitExact already covers; package boundaries accept a directory entry, so src/geo/ is listed once per group. - Cesium no longer carries movers and lines nobody draws with: they are optional engine capabilities. The fake engine and the Cesium camera use the shared cameraMath; unused contract tables, clock.ticked, the 'finest' surface detail and Navara click statistics are gone. - ALPR keeps one overlay core and one presentation model for both engines, bikeshare one station bookkeeping, the Navara ground effects one definition helper; image atlases, view centres, mover banks and colours are shared. - The legacy switch route, the clock offset and rate controls and other unused exports are removed. - The acceptance runs the Navara draw, geo import and scope checks; scenarios use the harness switch and page helpers; the main chunk check keeps the size budget only and runs once in CI.
This commit is contained in:
1 parent
c502404e1d
commit
7abf74518f
272 files changed
+4828
-10213
No files matched your search
@@ -4,15 +4,16 @@
|
||||
// center + (center − blur) × amount, clamped to [0, 1].
|
||||
//
|
||||
// After tone mapping and native-stage fields such as FIRMS, before AA and
|
||||
// the ordinary W1 display overlay. Native SHARPEN_SHADER filters encoded
|
||||
// display RGB. Navara buffers stay linear, so use the exact sRGB transfer
|
||||
// before the box mask and its inverse afterward. A gamma-2.2 approximation
|
||||
// changes the colors of small, high-contrast glows even at the same amount.
|
||||
// the ordinary display overlay (overlay.js). Native SHARPEN_SHADER filters
|
||||
// encoded display RGB. Navara buffers stay linear, so use the exact sRGB
|
||||
// transfer before the box mask and its inverse afterward. A gamma-2.2
|
||||
// approximation changes the colors of small, high-contrast glows even at the
|
||||
// same amount.
|
||||
//
|
||||
// The sky is left alone: Navara's clouds are dithered (a fine grain at the
|
||||
// `low` quality the look uses), and the mask turned that grain into visible
|
||||
// noise. A pixel whose scene depth (the MRT pass's packed depth buffer, as
|
||||
// the S1 drape reads it) is the far plane is sky or cloud; it keeps its
|
||||
// the drape reads it) is the far plane is sky or cloud; it keeps its
|
||||
// colour, and costs one texture read instead of nine.
|
||||
//
|
||||
// Its own pass: a convolution reads the pass input, so merged into the tone
|
||||
@@ -25,7 +26,7 @@ import { Effect as NavaraEffect, EffectDesc } from '@navaramap/three';
|
||||
import { Effect, EffectAttribute } from 'postprocessing';
|
||||
import { RGBADepthPacking, Uniform } from 'three';
|
||||
|
||||
export const SHARPEN_EFFECT_KEY = 'gevSharpen';
|
||||
const SHARPEN_EFFECT_KEY = 'gevSharpen';
|
||||
|
||||
const fragmentShader = /* glsl */ `
|
||||
uniform float amount;
|
||||
@@ -87,9 +88,7 @@ class UnsharpMaskEffect extends Effect {
|
||||
}
|
||||
|
||||
/** config.gevSharpen: { amount } (Cesium's `amount` uniform). */
|
||||
export class SharpenEffectDesc extends withPassDisposal(
|
||||
withFrameUpdates(EffectDesc),
|
||||
) {
|
||||
class SharpenEffectDesc extends withPassDisposal(withFrameUpdates(EffectDesc)) {
|
||||
static key = SHARPEN_EFFECT_KEY;
|
||||
static insertAfter = ['toneMapping'];
|
||||
static insertBefore = ['smaa', 'fxaa', 'gevOverlay', 'final'];
|
||||
|
||||
Reference in new issue
Block a user