feat(world): depth-attenuated daylight and cold-water palette for the seabed

The seabed shader applies per-channel Beer-Lambert transmittance relative
to a 24 m reference depth: the scalar part dims the directional light in a
custom light() function and the sky ambient through AO, the chroma part
tints the albedo, and artificial lights are left untouched for the
submarine's projectors. Sky, fog and sun are cooled and the sun softened
so the plateau reads green-blue, the canyon floor cold blue and the
drop-off foot near-indigo.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
OlivierandClaude Fable 5.1 committed 2026-10-06 23:21:14 +02:00
1 parent 26a7dfc4f7
commit 34b39a8dbc
9 files changed
+58 -23

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 547 KiB

After

Width:  |  Height:  |  Size: 446 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 599 KiB

After

Width:  |  Height:  |  Size: 322 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 610 KiB

After

Width:  |  Height:  |  Size: 420 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 507 KiB

After

Width:  |  Height:  |  Size: 419 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 449 KiB

After

Width:  |  Height:  |  Size: 410 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 KiB

After

Width:  |  Height:  |  Size: 261 KiB

@@ -257,6 +257,14 @@ de contacts existant les sépare du fond.
plus haute et plus forte (62°, 1,35) avec ombres douces à 70 % d'opacité,
SSAO pour l'occlusion à l'échelle du maillage, tonemap filmique, perspective
aérienne et albédo du brouillard volumétrique teintés.
- Lumière par profondeur (même jour) : le shader atténue la lumière du jour
par Beer-Lambert spectral (absorption par canal 0,11 / 0,04 / 0,032 par
mètre, normalisée à 24 m) ; la partie scalaire réduit le soleil (fonction
`light()`, directionnelle seulement) et l'ambiance ciel (`AO`), la partie
chromatique teinte l'albédo. Les projecteurs du sous-marin ne sont pas
atténués. Plancher à 5 % pour que le pied du tombant reste lisible. Palette
GDP §18.2 obtenue de fait : vert-bleu à 24 m, bleu froid à 45 m, indigo au
pied du tombant ; ciel, brouillard et soleil (0,9, ombres 45 %) refroidis.
**État du 2026-10-06 (demande d'Olivier)** : le shader mélange sable et roche
par la pente à partir de 20° (sable sous 20°, roche au-dessus de 40°, fondu