import type { CitySourceManifest } from '../source'; export interface SceneVisualsConfig { version: 1; mode: 'dynamic'; weather: { enabled: boolean; preset: string; } & Partial; timeOfDay: { hours: number; cycleSeconds: number; latitudeDeg: number; declinationDeg: number; noonAzimuthDeg: number; }; probes: { skyFallback: boolean; }; shadows: { extent: number; }; fog: { density: number; heightDensity: number; }; sky: { model: string; mieScale: number; groundBounceAlbedo: number; cloudStyle?: 'puff' | 'soft'; }; look: { preset: string; presets?: { day: CityDayLook; }; horizon: CityHorizon; }; exposure?: { compensation: number; }; /** The visual ocean's look (engine visual >= 0.1.142; an older runtime's shell drops the fields it does not know). */ ocean?: CityOcean; } /** The sea's own colour (linear RGB before the ambient: deep body, and what it lightens to over a shallow bed) and its mirror's strength. */ export interface CityOcean { deepColour: [number, number, number]; shallowColour: [number, number, number]; reflectance: number; sunGlint?: number; absorption?: [number, number, number]; } /** * The world's edge, the engine's `look.horizon` block: haze rising to `amount` in the sky's own horizon colour from `start` to `end` metres, * and a distant skyline silhouette `skyline` degrees high on the horizon (0 = none). The engine default (haze 0.96 from 1.6 km to 6.5 km and a * 0.9 degree skyline ring) is meant to hide where a world stops; on a 14 km city it washed everything past the near blocks out and painted a * fake city around the horizon (Jack, 2026-10-22). A city derives its own: no skyline, a thin distance-only haze that starts beyond the near * streets and never reaches more than `amount` of the sky colour, so the real map stays readable from 2 km up; the map's edge is dressed by * the terrain (`edgeFalloffM`), not hidden. */ export interface CityHorizon { start: number; end: number; amount: number; skyline: number; air?: CityAir; } /** * The haze LAYER (engine visual >= 0.1.146, `look.horizon.air`): full density up to `startM` above the sea, thinning with an e-folding `scaleM` * above it. The engine scales each ray's fog distance by the layer's mean density along that ray, so a street keeps the game's near-city haze, * a steep ray from 4-8 km crosses the layer once and the map reads, and a ray grazing the horizon still fades into the sky. `rampM` and * `edgeKeep` belong to visual 0.1.143-0.1.145 (per-camera thinning); the engine still parses them and no longer reads them. */ export interface CityAir { startM: number; scaleM: number; rampM: number; edgeKeep: number; } /** The cloud deck a weather block can shape (engine weather options): how much sky, how thick, how big, how high, and whether it shades the land. */ export interface CityWeatherDeck { coverage: number; density: number; cloudScaleM: number; cloudBaseM: number; cloudShadows: boolean; } /** The overrides a city look puts on the engine's built-in `day` preset (partial: what it does not say, `day` keeps). */ export interface CityDayLook { weather?: string | null; finish: { shadowTint: [number, number, number]; highlightTint: [number, number, number]; toning: number; saturation: number; lift: number; contrast?: number; }; sky: { gain: number; }; fog?: { extinction: [number, number, number]; densityScale?: number; }; } /** * The shade of a CS2 street. The engine's `day` look cools its shadows (shadow tint 0.9 / 0.97 / 1.1, toning 0.35) and keeps the display * toe closed, which suits open country; under a canyon of towers every street is shade, lit by the (blue) sky alone, and a * dark asphalt in it reads blue-black (measured: B - R = +24 in the shade, +23 in the sun, against Granit's -4 and -17). Neutralise * the cool shadow tint and open the toe (`finish.lift`: "so a shadowed street keeps its texture"); the sky's own contribution to the * light is eased to 0.8 so the blue does not return in the canyon. * The highlights stay neutral, with the engine's own toning (0.35) and full saturation. A warm highlight tint (1.12 / 1.0 / 0.82) * with toning 0.7 and saturation 0.92 was the cream-and-yellow wash over the whole terrain seen from the air (Leonida round 2: * green country read as sand, haze as cream) and bought nothing in the street, whose cast is set by the shadow tint and the lift. * Measured on Leonida's downtown asphalt (live shell, 3 poses): B - R in the shade +1.4 (was -21 warm), in the sun -23, against Granit's -4..-7 and -9..-19. */ export declare const CS2_DAY_LOOK: CityDayLook; /** What the far edge of the map keeps of its contrast through the fog (was 0.2: the far half of a 14 km map was a wall of haze). */ export declare const FOG_FAR_EDGE_TRANSMITTANCE = 0.6; /** Ground fog is this much denser than the air above it (a distance-only haze: 1). */ export declare const GROUND_FOG_RATIO = 1; /** The horizon of a derived city: no painted skyline, a light haze that starts at 6 km and gives the sky colour at most 0.3 of the far land. */ export declare const CITY_HORIZON: CityHorizon; /** * A CS2 map's air. The game has strong aerial perspective: from 2 km up the near land is crisp and the far side of the map fades into a pale * haze (pacifica-cs2-ref 15, 01, 12). The city default (fog keeping 60 % of the far edge, haze from 6 km at 0.3) left Pacifica's far side as * sharp as its near blocks. A CS2 map keeps 18 % of the far edge's contrast (fog 1.2e-4 over 14.3 km) and hazes from 4 km to 0.45 at 20 km: * the near and mid city stay readable (Jack, 2026-10-22: no wall of fog), the far map recedes. 2e-4 with haze from 2.5 km at 0.6 washed the * whole view from 2 km up (A/B round 1). */ export declare const CS2_FAR_EDGE_TRANSMITTANCE = 0.18; /** * ... and the haze is a low-altitude layer. The fog above is a distance-only exp: right for a street or a 300 m aerial (the game's haze), but * counted along a whole slant ray it wrapped a 4-8 km view in a wall. Round 2 thinned it by the camera's height and kept the world-edge haze * (edgeKeep 1, ramp stretched by 1 + h / 8 km): from 6-8 km every ray past ~30 km then reached the same 0.45 of the edge haze, a flat grey wall * over the upper two thirds of the frame (owner round 3, hz8k / coast6k / coast8kN; on live s5 `horizon.amount` 0 removed it entirely). * Now the engine reads it as a layer per ray. 400 m / 600 m: every pose at or under 400 m is unchanged (14, 24, 26, 28 and the streets; 02 at * 451 m moves under 3 sRGB levels); from 8 km the far sea reads dark navy under a pale horizon band (sky-band luma below the horizon 8-15 deg: * 133 live, 121 at 800 / 1200, 69 at 400 / 600) and the map below 30 deg is under 6 % haze. Chosen in the live page (run/pacifica-haze-20261025). * Needs engine visual >= 0.1.147: on 0.1.146 the fog's density uniform froze after a climb (it is 1e-8 at 6 km under this layer, below the * runtime's absolute write gate), so 8 km after 6 km rendered an opaque grey wall and 6 km after 8 km no haze at all (ship-6 e8 / s8, coast6k). */ export declare const CS2_AIR: CityAir; export declare const CS2_HORIZON: CityHorizon; /** The latitude and hour of a map that has no place on Earth. */ export declare const FICTIONAL_LATITUDE_DEG = 37.8; export declare const DEFAULT_HOURS = 14; /** * A CS2 map's exposure, EV over the engine's schedule. It was +0.75 ("keep the converted facades from reading dim"), and against the game at * the same poses every frame was over-exposed: frame mean sRGB 139-162 where the game reads 61-124 (A/B rounds 1 and 3). At -1.0 the aerial * frames land on the game's (01: 106 vs 106, 12: 95 vs 93, 08: 84 vs 73) and the street still reads brighter than the game's (97 vs 80). */ export declare const CS2_EXPOSURE_COMPENSATION = -1; /** * A CS2 map's sea. The game's sea is a near-black navy body (shore poses 24, 28, 08: sRGB 7-18 / 14-25 / 10-27) under a pale sky; the engine's * island sea (deep 0.012 / 0.055 / 0.075, shallow 0.07 / 0.27 / 0.23, the full Fresnel mirror) read pale grey-blue there (77-89 / 98-106 / * 115-120). The first answer (deep 0.002 / 0.012 / 0.016, 40 % mirror) was too dark and too blue next to the game's grey-teal at shots 14, 24, 26, * 32 (live Pacifica: sea band 5-8 / 6-9 / 14 against 12-25 / 18-33 / 20-38): the deep body takes red, green and blue near-equal (the grey-teal the game's * water reads at 14 / 24 / 32 / 28), the mirror (which carries the sky's blue) drops to 20 %, and the sun's glitter (`sunGlint`, engine visual >= 0.1.143, a multiplier on the GGX highlight) * to 15 %: at full strength a tidal channel mirrored the sun as a silver sheet from the air (pose marshAir, round-2 defect 9) where the * game's water shows only a faint sparkle. The water is murky too (`absorption`, engine visual >= 0.1.145, per metre): the engine's clear tropical * default (0.16 / 0.055 / 0.035) let the marsh's sand-painted bed show through a metre or three of water as bright turquoise (pose 21 marsh * median sRGB 96 / 107 / 77) where the game's channels are dark teal (15 / 27 / 28); at 0.65 / 0.55 / 0.55 the bed fades out within a few metres * and only the channel rims keep a teal edge, as in the game. Only the near water the engine refracts (within 350 m) changes; the open sea does not. * * Round 4 (pacifica-haze-2, 2026-10-25): the body is RED-HEAVY on purpose. The engine lights the body by the sky's ambient irradiance * (`CS2_SEA_AMBIENT`, read off the live ocean uniform at pose 14: 0.13 / 0.26 / 0.56, four times bluer than red), so the near-equal * 0.05 / 0.06 / 0.05 rendered a saturated navy with no red at all (s6 / s7, sRGB: pose 22 3 / 33 / 53 against the game's 31 / 45 / 52, * 08 0 / 29 / 47 against 28 / 33 / 33, 26 0 / 21 / 44 against 18 / 28 / 35, the open sea from 8 km 2 / 29 / 47), darker and bluer than any * game shot; the marsh (21, this colour's shallows) 1 / 21 / 37 against the game's dark green-teal 13 / 24 / 26. A body of 0.18 / 0.09 / * 0.042 under that light is a neutral slate (lit body 0.024 / 0.023 / 0.023), the mirror drops to 22 %, and the shallows take the same * red: 19 game-matched sea regions over poses 02 08 14 21 22 24 26 28 32 go from mean |error| 15.1 to 10.8 sRGB levels and their blue-over-red * excess from +22 to +4 (22 26 / 39 / 51, 08 22 / 34 / 44, 26 20 / 28 / 38, 21 19 / 25 / 31, the 8 km sea 33 / 36 / 39). Chosen in the live page * on visual 0.1.147 (run/pacifica-haze-2-20261025, sweeps m2, m3, m5, m6); inland water is its own material (`CS2_INLAND_WATER`), untouched. * * Round 5 (pacifica-polish-3, 2026-10-25): the absorption is RED-FIRST, as real sea water is. The grey 0.65 / 0.55 / 0.55 dimmed the bed * evenly, so a sand bed under a metre or two of water kept its own colour and the shallows read as dry brown sand from the air (shore * nadir sRGB 107 / 90 / 51, 40 m above the west beach 59 / 57 / 41), where the game's shallows are teal and its marsh channels have teal * rims (pose 21). 1.1 / 0.55 / 0.4 takes the red out first and keeps the blue-green: nadir 60 / 92 / 67, the 40 m view 26 / 59 / 54, the * marsh channels at pose 21 (pixels the change touches) 72 / 70 / 55 -> 57 / 71 / 62. The open sea, past the refraction range, is * unchanged (poses 14, 22, 24, 26 identical). Chosen in the live page on visual 0.1.148 (run/pacifica-polish-3-20261025, r2). */ export declare const CS2_OCEAN: CityOcean; /** The sky ambient the engine lit the sea body with at pose 14 (visual 0.1.147, live Pacifica): what `CS2_OCEAN` compensates for. */ export declare const CS2_SEA_AMBIENT: readonly [number, number, number]; /** * A CS2 map's sky: scattered soft cloud, sky only. The game's sky carries a few broad, soft, thin-edged clouds and wisps, flat-lit, over an * open hazy blue (pacifica-cs2-ref 12, 14, 24, 28). 'clear' (the first answer, after Granit's 'fair' deck read as a dense layer of cartoon * puffs, #544) left every view an empty gradient (round-2 defect 5); the engine's `sky.cloudStyle: "soft"` (engine visual >= 0.1.143) is a * flat, broken, soft-edged layer that is never lit or shadowed, so it cannot blotch the land or move the exposure. The deck: coverage 0.3, * density 0.3, 16 km cells, 2.6 km up, no cloud shadow; chosen in the live page against the game's shots at 24 / 28 / 12 / 14 (variants * s1-s4; s3 read closest). An older runtime that does not know `cloudStyle` warns and draws its puff deck at this coverage. * Coverage 0.3, not 0.5 (owner check 3, defect 3): at 0.5 the soft layer laid a thin grey veil over the whole dome, so the sky between * the clouds lost its blue. Sky band +3..10 deg, blue minus red, live A/B (pacifica-polish s1/s2) against the game: pose 15 (2 km) 31 -> 51 * (game 68), 26: 23 -> 48 (49), 14: 29 -> 51 (50), 24: 1 -> 12 (15); 02 overshoots, 33 -> 52 (21). Mean error over the five 22 -> 11. * 0.2 matched 15 better and lost 26 (sky luminance 127 against the game's 144). */ export declare const CS2_WEATHER = "fair"; export declare const CS2_CLOUDS: CityWeatherDeck; export declare const CS2_CLOUD_STYLE = "soft"; /** The scene visuals a city source gets. `scale` multiplies the fog densities (default 1). Pure: same manifest, same JSON. */ export declare function deriveSceneVisuals(manifest: Pick, scale?: number): SceneVisualsConfig; /** Writes `/scene-visuals/.json` (the path the shell fetches under its data prefix) and returns it. */ export declare function writeSceneVisualsFile(dir: string, sceneName: string, visuals: SceneVisualsConfig): string;