docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetCoefficient

    SetCoefficient(ref SphericalHarmonicsL2, int, Vector3)

    Set a spherical harmonics coefficient.

    Declaration
    public static void SetCoefficient(ref SphericalHarmonicsL2 sh, int index, Vector3 coefficient)
    Parameters
    Type Name Description
    SphericalHarmonicsL2 sh

    The SphericalHarmonicsL2 data structure to store information on.

    int index

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

    Vector3 coefficient

    The values of the coefficient is set.

    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)