perf: start cloud raymarch at 48 samples

This commit is contained in:
Richard Zink committed 2026-10-13 21:34:12 +02:00
1 parent 06ad6db900
commit cf41b72133
1 file changed
+3 -3
+3 -3
View File
@@ -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;',