3D engine that AI agents drive
Light the dawn mist from the sky so the far forest is not black (part of #394)
Nguyen Xuan An75503f4ab676
diff --git a/bench/reference/look-options.js b/bench/reference/look-options.jsindex 6e05ae89..f2a23df2 100644--- a/bench/reference/look-options.js+++ b/bench/reference/look-options.js@@ -141,7 +141,9 @@ 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,- mist: { density: 0.0022, minimum: [-1600, -20, -1800], maximum: [1600, 38, 1200], color: [1, 0.84, 0.8], ambient: [0.02, 0.02, 0.03], 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. 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 },});}diff --git a/changes/394.md b/changes/394.mdindex 179d21ba..d389bcbc 100644--- a/changes/394.md+++ b/changes/394.md@@ -1,2 +1,3 @@- Tree levels 1 to 3 now read the sky visibility field measured on level 0 and keep its mean, so every level sees about as much sky as level 0 (it was 0.04 to 0.06 against 0.08 to 0.12). Part of #394.- 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.