docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetCoefficient

    GetCoefficient(SphericalHarmonicsL2, int)

    Get a spherical harmonics coefficient.

    Declaration
    public static Vector3 GetCoefficient(SphericalHarmonicsL2 sh, int index)
    Parameters
    Type Name Description
    SphericalHarmonicsL2 sh

    The SphericalHarmonicsL2 data structure to get information from.

    int index

    The index of the coefficient that is requested (must be less than 9).

    Returns
    Type Description
    Vector3

    The value of the requested coefficient.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)