You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Schlick ground diffuse IAM exceeds its physical bound at shallow tilt #2958
The ground diffuse modifier is a positive weighted average of the
directional modifier. Every ray from the visible ground has an
incidence cosine at most sin(tilt). At the tilt above, that puts the
average below 4.36332e-6. Direct integration over the visible ground
gives 2.46913e-6, stable under doubling the quadrature order. The
returned value is 0.001953125.
The formula subtracts two large, nearly equal terms as the ground
view approaches zero. The same expression is present on the default
branch. Issue #2939 describes nonfinite values exactly at 180 degrees.
This example exercises a positive ground view and returns a finite
value outside the allowed range.
I found this while testing physverify, a small verification tool I'm working on, against public codes. The tests and this write-up were done with help from an AI assistant; the numbers come from actually running the code.
A note on scope: this only shows up at extreme tilts (about 0.00005°); from 0.001° upward the values stay within the bound. So it is a very small edge case. Please feel free to close it if it isn't worth handling.
Yes, it looks like it. Near tilt 0 the PR's series gives 2.4691329e-6 at 0.00005°, which matches the direct integration over the visible ground (2.46913e-6), and the leading terms 80/(9π)·β − (15/4)·β² agree with an independent high-precision expansion of Eq 6. Values at 0.001°, 0.1° and 0.29° also stay within the bound. I'm happy for this to be closed by #2942.
Activity
rcgiri-physics commentedon Nov 23, 2026
A note on scope: this only shows up at extreme tilts (about 0.00005°); from 0.001° upward the values stay within the bound. So it is a very small edge case. Please feel free to close it if it isn't worth handling.
cwhanse commentedon Nov 23, 2026
Would this issue be fixed by #2942?
rcgiri-physics commentedon Nov 23, 2026
Yes, it looks like it. Near tilt 0 the PR's series gives 2.4691329e-6 at 0.00005°, which matches the direct integration over the visible ground (2.46913e-6), and the leading terms 80/(9π)·β − (15/4)·β² agree with an independent high-precision expansion of Eq 6. Values at 0.001°, 0.1° and 0.29° also stay within the bound. I'm happy for this to be closed by #2942.
cwhanse commentedon Nov 23, 2026
thank you for the issue report.