From e86819457c76b36d741409b39562f8bb9a6d9e39 Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Tue, 13 Oct 2026 20:11:07 +0200 Subject: [PATCH] feat: soft cloud layer edges --- config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config.js b/config.js index 1e61f11..f9ae11c 100644 --- a/config.js +++ b/config.js @@ -335,6 +335,14 @@ window.CONFIG = { start: 0.35, // world units: clouds fade out very close to camera end: 2.5 // full density from this distance onward }, + // Soft cloud edges: instead of a hard shell boundary, the deck fades + // vertically and near grazing horizon rays. This targets the visible + // cloud-deck ring without changing the actual cloud top/bottom. + softEdges: true, + edgeSoftness: 0.18, // world units of vertical soft padding + horizonSoftness: 8.0, // path-length fade for grazing cloud rays + maxMarchUnits: 120, // raymarch cap; 30 was the old fixed cap + // softEdges: false // old hard-edged shell behaviour // Terrain occlusion for clouds. false draws clouds in front of the // terrain mesh even when terrain is closer; true clips cloud rays // against the terrain distance buffer.