3D engine that AI agents drive
Use the layered valley mist in the dawn scene (part of #394)
Nguyen Xuan Anf1400ca0d0e7
diff --git a/bench/reference/look-options.js b/bench/reference/look-options.jsindex f2a23df2..154c2824 100644--- a/bench/reference/look-options.js+++ b/bench/reference/look-options.js@@ -141,9 +141,10 @@ function mountainValleyDawn() {forestMix: { conifer: 1, birch: 0.12 },boulders: { innerRadius: 8, outerRadius: 70, count: 40, size: [0.5, 2.6], seed: 8, facing: -0.3 },treeExclusion: (x, z, eye) => Math.hypot(x - eye[0], z - eye[2]) < 70,- // The sun sits behind the massif, so this mist is lit by the sky, which Cycles does for any volume. Its ambient is about the- // sky's mean radiance; the 0.02 of the sunlit scenes left the veil dark and the far forest black.- mist: { density: 0.0022, minimum: [-1600, -20, -1800], maximum: [1600, 38, 1200], color: [1, 0.84, 0.8], ambient: [0.5, 0.47, 0.55], anisotropy: 0.55, noiseAmount: 0, steps: 48, maxDistance: 2600 },+ // The sun sits behind the massif, so this mist is lit by the sky, which Cycles does for any volume; the 0.02 ambient of the+ // sunlit scenes left the veil dark and the far forest black. It is dense at the valley floor and thins with height, with+ // coarse noise for patches, so it reads as valley mist and not as one uniform box over the forest (option G, chosen 2026-11-04).+ mist: { density: 0.004, heightFalloff: 35, minimum: [-1600, 0, -1800], maximum: [1600, 140, 1200], color: [1, 0.92, 0.9], ambient: [0.85, 0.72, 0.75], anisotropy: 0.6, noiseAmount: 0.8, noiseScale: 0.0025, steps: 48, maxDistance: 2600 },});}diff --git a/changes/394.md b/changes/394.mdindex 800d6476..7fd908ff 100644--- a/changes/394.md+++ b/changes/394.md@@ -2,3 +2,4 @@- Leaves and grass blades now let sun through to the face you see. Before, a tree's flat lower-level cards seen from below took transmitted light from the wrong side and lost the rest to their own shadow, so under the sun they read at about 0.3 to 0.6 of level 0's brightness on the leaf pixels, now about 0.5 to 0.9. Part of #394.- The dawn forest of the `mountain-valley-dawn` reference scene was black because its mist was lit by almost nothing: the scene copied `ambient: 0.02` from the sunlit scenes, but here the sun is behind the massif and Cycles lights the mist from the sky. The mist now has the sky's mean radiance (0.5), and the forest pixels read 0.030 to 0.037 luminance against 0.014 to 0.021 before and 0.020 to 0.033 in Cycles (FLIP against Cycles 0.200 to 0.167). Before the change the near trees (70 to 150 m) already read 0.021 against 0.020 in Cycles, so no shader term changed. Part of #394.- `volumeFog` takes `heightFalloff` (metres): density thins as exp(-height above the volume floor / heightFalloff), so a mist can be thick on the valley floor and fade with height without a hard top. 0 keeps the flat volume. Part of #394.+- The dawn valley mist in `mountain-valley-dawn` is dense at the floor and thins with height (`heightFalloff` 35 m), with coarse noise patches and a sky-lit pale ambient, so the forest reads through layered mist instead of a uniform grey box. Part of #394.