SphericalHarmonics.Add

void Add(Vec3 lightDir, Color lightColor)

   
Vec3 lightDir Direction to the light source.
Color lightColor Color of the light, in linear color space.

Adds a ‘directional light’ to the lighting approximation. This can be used to bake a multiple light setup, or accumulate light from a field of points.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!