Skip to content

Api > SphericalHarmonicsL2 > AddAmbientLight()


SphericalHarmonicsL2.AddAmbientLight(Color color)⚓︎

Add ambient lighting to probe data. If SH probe is used to calculate lighting, this function has the effect of adding ambient light into probe data.

Parameters:⚓︎

Name Type Description
color Color The Color of light.

Usage⚓︎

---@type SphericalHarmonicsL2
local sphericalharmonicsl2;

---@type Color
local color;


sphericalharmonicsl2.AddAmbientLight(color)