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/README.md +1 -1
- package/dist/rayzee.es.js +1055 -1037
- package/dist/rayzee.es.js.map +1 -1
- package/dist/rayzee.umd.js +126 -78
- package/dist/rayzee.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/EngineDefaults.js +27 -16
- package/src/Stages/ASVGF.js +304 -185
- package/src/Stages/AdaptiveSampling.js +6 -6
- package/src/Stages/BilateralFilter.js +85 -69
- package/src/Stages/Compositor.js +1 -0
- package/src/Stages/NormalDepth.js +56 -118
- package/src/TSL/BVHTraversal.js +114 -49
- package/src/TSL/Common.js +3 -4
- package/src/TSL/Debugger.js +6 -6
- package/src/TSL/Displacement.js +13 -13
- package/src/TSL/Environment.js +12 -12
- package/src/TSL/LightsCore.js +14 -15
- package/src/TSL/LightsDirect.js +2 -5
- package/src/TSL/LightsIndirect.js +20 -21
- package/src/TSL/LightsSampling.js +19 -20
- package/src/TSL/MaterialEvaluation.js +2 -2
- package/src/TSL/MaterialProperties.js +5 -5
- package/src/TSL/MaterialTransmission.js +4 -6
- package/src/TSL/PathTracer.js +4 -6
- package/src/TSL/PathTracerCore.js +13 -29
- package/src/TSL/TextureSampling.js +3 -3
- package/src/managers/DenoisingManager.js +12 -2
package/package.json
CHANGED
package/src/EngineDefaults.js
CHANGED
|
@@ -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.
|
|
152
|
-
|
|
153
|
-
|
|
159
|
+
temporalAlpha: 0.1,
|
|
160
|
+
gradientStrength: 0.0,
|
|
161
|
+
atrousIterations: 3,
|
|
162
|
+
phiColor: 1.0,
|
|
154
163
|
phiNormal: 64.0,
|
|
155
|
-
phiDepth:
|
|
164
|
+
phiDepth: 0.1,
|
|
156
165
|
phiLuminance: 6.0,
|
|
157
|
-
maxAccumFrames:
|
|
166
|
+
maxAccumFrames: 16,
|
|
158
167
|
varianceBoost: 0.5
|
|
159
168
|
},
|
|
160
169
|
medium: {
|
|
161
|
-
temporalAlpha: 0.
|
|
162
|
-
|
|
163
|
-
|
|
170
|
+
temporalAlpha: 0.03,
|
|
171
|
+
gradientStrength: 0.0,
|
|
172
|
+
atrousIterations: 4,
|
|
173
|
+
phiColor: 0.5,
|
|
164
174
|
phiNormal: 128.0,
|
|
165
|
-
phiDepth:
|
|
166
|
-
phiLuminance:
|
|
167
|
-
maxAccumFrames:
|
|
175
|
+
phiDepth: 0.05,
|
|
176
|
+
phiLuminance: 4.0,
|
|
177
|
+
maxAccumFrames: 64,
|
|
168
178
|
varianceBoost: 1.0
|
|
169
179
|
},
|
|
170
180
|
high: {
|
|
171
|
-
temporalAlpha: 0.
|
|
172
|
-
|
|
173
|
-
|
|
181
|
+
temporalAlpha: 0.0,
|
|
182
|
+
gradientStrength: 0.0,
|
|
183
|
+
atrousIterations: 6,
|
|
184
|
+
phiColor: 0.3,
|
|
174
185
|
phiNormal: 256.0,
|
|
175
|
-
phiDepth: 0.
|
|
186
|
+
phiDepth: 0.02,
|
|
176
187
|
phiLuminance: 2.0,
|
|
177
|
-
maxAccumFrames:
|
|
188
|
+
maxAccumFrames: 128,
|
|
178
189
|
varianceBoost: 1.5
|
|
179
190
|
}
|
|
180
191
|
};
|