From 0648676974e1286ef24d522ebcf17b687fd28006 Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Wed, 7 Oct 2026 18:54:58 +0200 Subject: [PATCH] Add volumetric clouds3d renderer Raymarches a horizontal cloud layer (28 steps, 4-octave 3D fBm). Camera path is sinusoidal in altitude so the view dips into the cloud deck at intervals for a 'fly through the edges' feel. Density threshold from weather: sunny -> sparse, stormy -> overcast. Renderer is selected via CONFIG.renderer ('clouds2d' or 'clouds3d'). --- background-final.html | 16 ++- background.html | 14 ++- config.js | 2 +- vendor/clouds3d.js | 269 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 289 insertions(+), 12 deletions(-) create mode 100644 vendor/clouds3d.js diff --git a/background-final.html b/background-final.html index 8043074..4231eb4 100644 --- a/background-final.html +++ b/background-final.html @@ -83,7 +83,7 @@ window.CONFIG = { debug: 0, theme: 'ash', units: 'metric', - renderer: 'clouds2d', // 'vanta' or 'clouds2d' + renderer: 'clouds3d', // 'vanta', 'clouds2d', or 'clouds3d' language: 'de', timeFormat: 'DD. MMMM, YYYY ‒ HH:mm:SS', location: { @@ -1087,6 +1087,7 @@ else window.SunCalc = SunCalc; + +