A6: Sea, sky and weather
Weather.at(tide, tick) derives the weather from the tide's schedule alone, so every client sees the same sky with nothing new on the wire: the storm builds from calm at the first tide to a gale at sudden death, and the light runs from mid-afternoon to dusk at the time limit. WeatherView applies it each sync to the sky, sun, fog, ambient light, the sea's roughness and rain around the camera (CPUParticles3D, for both renderers). Under water the view closes into SEA_MURK, the rain stops and the surface is a rippled ceiling seen from below. The sea shader darkens open water and adds chop and whitecaps with the storm, and keeps a breathing foam band at the waterline with a fainter line beyond. In the Compatibility renderer, whose depth texture the shader can't read (the sea came out all foam), water depth comes from a texture of the terrain's heights instead. Sea colours move into Palette; the rain and wind beds follow the weather. Tests: test_weather (7). make check passes (611 tests). Captures: make sea-captures (every tide phase, calm beach, the last land in the gale, under water, and three in the Compatibility renderer). Closes #46 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -72,6 +72,23 @@ const SKY_TOP: Color = Color(0.32, 0.50, 0.68)
|
||||
const SKY_HAZE: Color = Color(0.82, 0.78, 0.68)
|
||||
const SKY_BELOW: Color = Color(0.18, 0.20, 0.20)
|
||||
const SEA_FOG: Color = Color(0.78, 0.78, 0.74)
|
||||
## Weather (A6): the gale's low cloud overhead and on the horizon, the dusk haze and the
|
||||
## low sun's warm light, as the match wears on and the storm builds.
|
||||
const STORM_SKY: Color = Color(0.36, 0.40, 0.44)
|
||||
const STORM_HAZE: Color = Color(0.58, 0.60, 0.60)
|
||||
const DUSK_HAZE: Color = Color(0.86, 0.66, 0.50)
|
||||
const DUSK_SUN: Color = Color(1.0, 0.78, 0.56)
|
||||
## Rain streaks, pale and mostly clear.
|
||||
const RAIN: Color = Color(0.80, 0.84, 0.86, 0.22)
|
||||
|
||||
# --- The sea (A6) -------------------------------------------------------------------
|
||||
## Water over sand, open water, the gale's darker open water and the foam.
|
||||
const SEA_SHALLOW: Color = Color(0.42, 0.55, 0.50)
|
||||
const SEA_DEEP: Color = Color(0.10, 0.22, 0.30)
|
||||
const SEA_STORM: Color = Color(0.13, 0.20, 0.22)
|
||||
const SEA_FOAM: Color = Color(0.86, 0.88, 0.84)
|
||||
## Under the surface: the murk a swimmer sees.
|
||||
const SEA_MURK: Color = Color(0.12, 0.28, 0.30)
|
||||
|
||||
# --- Print and paper (the woodcut pass and the HUD) ---------------------------------
|
||||
## Printer's ink: outlines and hatching, warm, never pure black.
|
||||
|
||||
Reference in New Issue
Block a user