From cf41b7213312e58e05bbced3cb0ca2f749d0033c Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Tue, 13 Oct 2026 21:34:12 +0200 Subject: [PATCH] perf: start cloud raymarch at 48 samples --- vendor/clouds3d.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/clouds3d.js b/vendor/clouds3d.js index be0066d..4d75cdf 100644 --- a/vendor/clouds3d.js +++ b/vendor/clouds3d.js @@ -729,9 +729,9 @@ var FRAG_SRC = [ 'float phase = 0.30 + 0.70 * pow(max(0.0, cosT), 2.5);', 'float trans = 1.0;', 'vec3 cloudSum = vec3(0.0);', - 'for (int i = 0; i < 32; i++) {', - 'float u = (float(i) + 0.5) / 32.0;', - 'float uNext = (float(i) + 1.5) / 32.0;', + 'for (int i = 0; i < 48; i++) {', + 'float u = (float(i) + 0.5) / 48.0;', + 'float uNext = (float(i) + 1.5) / 48.0;', 'float mapU = (1.0 - exp(-marchCurve * u)) / marchDenom;', 'float mapUNext = (1.0 - exp(-marchCurve * uNext)) / marchDenom;', 'float t = tEnter + (tExit - tEnter) * mapU;',