docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SphericalHarmonicsL2Utils

    A collection of utility functions used to access and set SphericalHarmonicsL2 in a more verbose way.

    Inheritance
    object
    SphericalHarmonicsL2Utils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public class SphericalHarmonicsL2Utils

    Methods

    Name Description
    GetCoefficient(SphericalHarmonicsL2, int)

    Get a spherical harmonics coefficient.

    GetL1(SphericalHarmonicsL2, out Vector3, out Vector3, out Vector3)

    Returns the L1 coefficients organized in such a way that are swizzled per channel rather than per coefficient.

    GetL2(SphericalHarmonicsL2, out Vector3, out Vector3, out Vector3, out Vector3, out Vector3)

    Returns all the L2 coefficients.

    SetCoefficient(ref SphericalHarmonicsL2, int, Vector3)

    Set a spherical harmonics coefficient.

    SetL0(ref SphericalHarmonicsL2, Vector3)

    Set L0 coefficient.

    SetL1(ref SphericalHarmonicsL2, Vector3, Vector3, Vector3)

    Set all L1 coefficients per channel.

    SetL1B(ref SphericalHarmonicsL2, Vector3)

    Set the blue channel for each of the L1 coefficients.

    SetL1G(ref SphericalHarmonicsL2, Vector3)

    Set the green channel for each of the L1 coefficients.

    SetL1R(ref SphericalHarmonicsL2, Vector3)

    Set the red channel for each of the L1 coefficients.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    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)