SphericalHarmonicsFromScratch Derivation of spherical harmonic basis functions and its application in global illumination.