Skip to main content

SphericalHarmonicsL2.Evaluate(Vector3[] directions)

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

Parameters:

NameTypeDescription
directionsVector3[]Normalized directions for which the spherical harmonics are to be evaluated.

Returns:

typeDescription
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)