Class SphericalHarmonics
- Namespace
- Stride.Core.Mathematics
- Assembly
- Stride.Core.Mathematics.dll
A spherical harmonics representation of a cubemap.
[DataContract("SphericalHarmonics")]
public class SphericalHarmonics : SphericalHarmonics<Color3>
- Inheritance
-
SphericalHarmonics
- Inherited Members
Constructors
SphericalHarmonics(int)
Initializes a new instance of the SphericalHarmonics class.
public SphericalHarmonics(int order)
Parameters
order
intThe order of the harmonics
Fields
BaseCoefficients
Base coefficients for SH.
public static readonly float[] BaseCoefficients
Field Value
- float[]
Methods
Evaluate(Vector3)
Evaluates the color for the specified direction.
public override Color3 Evaluate(Vector3 direction)
Parameters
direction
Vector3The direction to evaluate.
Returns
- Color3
The color computed for this direction.