Skip to content

Api > SphericalHarmonicsL2 > Evaluate()


SphericalHarmonicsL2.Evaluate(Vector3[] directions)⚓︎

Evaluates the Spherical Harmonics for each of the given directions. Directions must be normalized.

Parameters:⚓︎

Name Type Description
directions Vector3[] Normalized directions for which the spherical harmonics are to be evaluated.

Returns:⚓︎

type Description
Color[] Output array for the evaluated values of the corresponding directions.

Usage⚓︎

---@type SphericalHarmonicsL2
local sphericalharmonicsl2;

---@type Vector3
local directions;


local val0 = sphericalharmonicsl2.Evaluate(directions)