rayzee 6.2.0 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rayzee",
3
- "version": "6.2.0",
3
+ "version": "6.3.0",
4
4
  "type": "module",
5
5
  "description": "Real-time WebGPU path tracing engine built on Three.js",
6
6
  "main": "dist/rayzee.umd.js",
@@ -146,35 +146,46 @@ export const ENGINE_DEFAULTS = {
146
146
  autoExposureAdaptSpeedDark: 0.5,
147
147
  };
148
148
 
149
+ // Albedo demodulation safety floor. ASVGF and BilateralFilter MUST use the
150
+ // same value — demod (`color / safeAlbedo`) and remod (`lighting * safeAlbedo`)
151
+ // only round-trip exactly when both sides agree.
152
+ export const ALBEDO_EPS = 0.01;
153
+
149
154
  export const ASVGF_QUALITY_PRESETS = {
155
+ // phiColor / phiDepth are RELATIVE tolerances (fractions). Bigger = more
156
+ // permissive. gradientStrength = 0 keeps the adaptive-α boost off; the
157
+ // fixed-floor gradient misfires on 1-SPP noise. Pure SVGF temporal runs.
150
158
  low: {
151
- temporalAlpha: 0.3,
152
- atrousIterations: 1,
153
- phiColor: 30.0,
159
+ temporalAlpha: 0.1,
160
+ gradientStrength: 0.0,
161
+ atrousIterations: 3,
162
+ phiColor: 1.0,
154
163
  phiNormal: 64.0,
155
- phiDepth: 2.0,
164
+ phiDepth: 0.1,
156
165
  phiLuminance: 6.0,
157
- maxAccumFrames: 8,
166
+ maxAccumFrames: 16,
158
167
  varianceBoost: 0.5
159
168
  },
160
169
  medium: {
161
- temporalAlpha: 0.1,
162
- atrousIterations: 3,
163
- phiColor: 20.0,
170
+ temporalAlpha: 0.03,
171
+ gradientStrength: 0.0,
172
+ atrousIterations: 4,
173
+ phiColor: 0.5,
164
174
  phiNormal: 128.0,
165
- phiDepth: 1.0,
166
- phiLuminance: 2.0,
167
- maxAccumFrames: 32,
175
+ phiDepth: 0.05,
176
+ phiLuminance: 4.0,
177
+ maxAccumFrames: 64,
168
178
  varianceBoost: 1.0
169
179
  },
170
180
  high: {
171
- temporalAlpha: 0.05,
172
- atrousIterations: 8,
173
- phiColor: 5.0,
181
+ temporalAlpha: 0.0,
182
+ gradientStrength: 0.0,
183
+ atrousIterations: 6,
184
+ phiColor: 0.3,
174
185
  phiNormal: 256.0,
175
- phiDepth: 0.5,
186
+ phiDepth: 0.02,
176
187
  phiLuminance: 2.0,
177
- maxAccumFrames: 64,
188
+ maxAccumFrames: 128,
178
189
  varianceBoost: 1.5
179
190
  }
180
191
  };