Repository navigation
R1.v: reduced base takes the albedo correction (reducedCorrection: 'match') - #118
Open
DennisSmolek wants to merge 1 commit into
Open
DennisSmolek wants to merge 1 commit into
DennisSmolek wants to merge 1 commit into
Conversation
…o correction (V555, V556); Tier 1 A/B, furnace, matrix --no-lock Part of #55 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #55 (R1.v, DIVERGES V555 / V556).
What changed
PtMaterialOptions.reducedCorrection: 'none' | 'match'(bsdf/adapter.ts). Default'none': every kernel and image unchanged (V214 stands).'match'multiplies the reduced Lambert lobe by the same fitted base correctionc(r, mu_o, base Ri)that the full albedo layering applies (only when the full material has one and the interface is rough). No new fit was needed: the reduced Lambert weight is the layered diffuse albedo, so scaling it by the full material's own correction makes the albedos agree.match), so the wavefront secondary shade kernel needs no new binding.pt_lod_corr=match, renderer idspt-mk-lod-corr/pt-wf-lod-corr,lod-check corr=1 gatenone=0 cases=...,matrix.ts --no-lock(correctness-only runs).Verified
node bench/size-snapshot.tsbefore/after: 355 files,diff -rqempty (default kernels byte-identical).pnpm typecheck(only the known@pmndrs/vdberrors),vitest bsdf/lod.test.ts wavefront/lod-wgsl.test.ts(20 pass; new: reduced albedo withmatchwithin 3% + 0.005 of the corrected full quadrature, TS twin vs WGSL table and interpolation,nonetext unchanged).node bench/runner/run.ts --page lod-check --no-lock --args spp=512 corr=1 gatenone=0(depth 0, whole-sphere mean, reduced vs full albedo layering with the D32 default correction), none -> match: grey 0.8 r0.3 +5.15% -> +0.07%, r0.6 +39.9% -> +0.08%, red r0.3 +2.5% -> +0.25%, metal-mix +6.2% -> +0.06%, fuzz over layered +4.0% -> +0.9%, coat r0.3 +1.4% -> -0.6% (slight over-correction). Wavefront = megakernel per pixel (relMSE <= 1e-13). Coated metals are unchanged (coated-gold-rough mismatch is R1c, not this).pt-mk-lod->pt-mk-lod-corr: ClearCoatTest-notex +0.01% / 2.07% -> -0.00% / 0.55%; SheenTestGrid-notex +0.29% / 6.90% -> -0.01% / 0.87%; MetalRoughSpheresNoTextures +0.16% / 3.76% -> +0.00% / 0.12%; IORTestGrid-notex-A, AttenuationTest-notex, ClearCoatTest-notex-metal unchanged. (Run on a loaded Mac, correctness only; no timings.)A/B for the maintainer
Decision left: make
'match'the default ofmode: 'preview' / 'realtime'(quality says yes; the extra lookup timing is a QUIET-PASS row).Left
Default flip; timing; R1c (coated rough metal) untouched.
🤖 Generated with Claude Code