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
Hi Matt, thank you for your great writeup. I have a little issue with the section of "Applying To Ambient Lighting", I'm wondering how to generate SH coefficients for a spherical gaussian in runtime? I mean how to do the integral of a diffusion profile(represented by spherical gaussian) and SH probe?
Could you explain more about it? Thank you so much.
Hey there! I have not any extensive work in terms of figuring out a good fit or approximation to generate SH coefficients from an arbitrary SG lobe. In the article I suggested following Ravi's work for approximating a Torrance-Sparrow NDF as SH coefficients using an exponential, which is probably a good start for approximating the normalized SG lobe that you would use for sub-surface scattering. Once you've done that, you can convolve it with your SH probe lighting with a simple multiply.
Approximating Subsurface Scattering With Spherical Gaussians
https://therealmjp.github.io/posts/sss-sg/
The text was updated successfully, but these errors were encountered: