Skip to main content

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:

NameTypeDescription
colorColorThe Color of light.

Usage

---@type SphericalHarmonicsL2
local sphericalharmonicsl2;

---@type Color
local color;


sphericalharmonicsl2.AddAmbientLight(color)