⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

SphericalHarmonics.SubtractLight

SHLight SubtractLight(SHLight light)

Removes a directional light from this lighting data, clamped to the light actually present so the result stays physical. Pairs with DominantLight for splitting the dominant light out of an SH, the way Lighting.MainLight does.

   
SHLight light The light to remove, such as one from DominantLight.
RETURNS: SHLight The light actually removed, which may be dimmer than requested when this SH doesn’t contain that much light.




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