SphericalHarmonics.Add
void Add(Vec3 lightDir, Color lightColor)
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.
Vec3 lightDir | Direction to the light source. |
Color lightColor | Color of the light, in linear color space. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!