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
 - 
      objectSphericalHarmonics
 
- Inherited Members
 
Constructors
SphericalHarmonics(int)
Initializes a new instance of the SphericalHarmonics class.
public SphericalHarmonics(int order)
  Parameters
orderintThe 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
directionVector3The direction to evaluate.
Returns
- Color3
 The color computed for this direction.