Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    SphericalHarmonics Class

    Namespace: Stride.Core.Mathematics
    Assembly: Stride.Core.Mathematics.dll

    A spherical harmonics representation of a cubemap.

    System.Object → SphericalHarmonics<Color3> → SphericalHarmonics
    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.

    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    Fields


    BaseCoefficients

    Base coefficients for SH.

    public static readonly float[] BaseCoefficients
    Field Value
    Type Description
    System.Single[]
    | Improve this Doc View Source

    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)

    Inherited Members

    SphericalHarmonics<Color3>.MaximumOrder
    SphericalHarmonics<Color3>.Order
    SphericalHarmonics<Color3>.Coefficients
    SphericalHarmonics<Color3>.Item[Int32, Int32]

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation