SphericalHarmonics Class
Namespace: Stride.Core.MathematicsAssembly: Stride.Core.Mathematics.dll
A spherical harmonics representation of a cubemap.
Derived from SphericalHarmonics:
[DataContract("SphericalHarmonics")]
public class SphericalHarmonics : SphericalHarmonics<Color3>
Name | Description | |
---|---|---|
Constructors | ||
SphericalHarmonics(Int32) | Initializes a new instance of the SphericalHarmonics class. |
|
Fields | ||
BaseCoefficients | Base coefficients for SH. |
|
Methods | ||
Evaluate(Vector3) | Evaluates the color for the specified direction. |
Constructors
SphericalHarmonics(Int32)
Initializes a new instance of the SphericalHarmonics class.
public SphericalHarmonics(int order)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | order | The order of the harmonics |
Fields
BaseCoefficients
Base coefficients for SH.
public static readonly float[] BaseCoefficients
Field Value
Type | Description |
---|---|
System.Single[] |
Methods
Evaluate(Vector3)
Evaluates the color for the specified direction.
public override Color3 Evaluate(Vector3 direction)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | direction | The direction to evaluate. |
Returns
Type | Description |
---|---|
Color3 | The color computed for this direction. |
Overrides
Stride.Core.Mathematics.SphericalHarmonics<Stride.Core.Mathematics.Color3>.Evaluate(Stride.Core.Mathematics.Vector3)