fix(raw): refine RAW highlight clipping threshold to preserve sunset sun color without white dome clipping

This commit is contained in:
2026-10-02 18:15:21 +07:00
parent 22fa4f289b
commit 256fe6c2e2
9 changed files with 6 additions and 6 deletions
@@ -38,7 +38,7 @@ assert.match(code, /float3 lin = n \* mul\.rgb;/);
// with both, mean |dL| 21.5 against 11.1.
assert.match(
code,
/float hi = max\(max\(n\.r, n\.g\), n\.b\);\s*hi = max\(hi, max\(max\(lin\.r, lin\.g\), lin\.b\)\);\s*rgb = mix\(rgb, float3\(mx\), smoothstep\(0\.95, 1\.0, hi\)\);/
/float hi = max\(max\(n\.r, n\.g\), n\.b\);\s*hi = max\(hi, max\(max\(lin\.r, lin\.g\), lin\.b\)\);\s*rgb = mix\(rgb, float3\(mx\), smoothstep\(0\.99, 1\.02, hi\)\);/
);
// The inverse is built on the CPU side and has to be the first uniform of the