SphericalHarmonics.DominantLightDirection

Vec3 DominantLightDirection{ get }

Description

Returns the dominant direction of the light represented by this spherical harmonics data. The direction value is normalized.

You can get the color of the light in this direction by using the struct’s Sample method: light.Sample(-light.DominantLightDirection).




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