docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SHCoefficients

    Contains spherical harmonic coefficients used for lighting representation in the format expected by DOTS_INSTANCING_ON shaders.

    The size of the struct is padded to a power of two so arrays of such structs can be efficiently indexed in shaders.

    Implements
    IEquatable<SHCoefficients>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    [Serializable]
    public struct SHCoefficients : IEquatable<SHCoefficients>

    Constructors

    Name Description
    SHCoefficients(SphericalHarmonicsL2)

    Construct an instance of SHCoefficients that represents the same spherical harmonic coefficients as the parameter.

    SHCoefficients(SphericalHarmonicsL2, Vector4)

    Construct an instance of SHCoefficients that represents the same spherical harmonic coefficients as the parameter.

    Fields

    Name Description
    ProbesOcclusion

    Contains the baked shadowing data that corresponds to the unity_ProbesOcclusion shader property.

    SHAb

    Contains the SH coefficients that correspond to the unity_SHAb shader property.

    SHAg

    Contains the SH coefficients that correspond to the unity_SHAg shader property.

    SHAr

    Contains the SH coefficients that correspond to the unity_SHAr shader property.

    SHBb

    Contains the SH coefficients that correspond to the unity_SHBb shader property.

    SHBg

    Contains the SH coefficients that correspond to the unity_SHBg shader property.

    SHBr

    Contains the SH coefficients that correspond to the unity_SHBr shader property.

    SHC

    Contains the SH coefficients that correspond to the unity_SHC shader property.

    Methods

    Name Description
    Equals(object)

    Equals implementation.

    Equals(SHCoefficients)

    Equals implementation.

    GetHashCode()

    GetHashCode implementation.

    Operators

    Name Description
    operator ==(SHCoefficients, SHCoefficients)

    Equality operator implementation.

    operator !=(SHCoefficients, SHCoefficients)

    Not equals operator implementation.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)

    See Also

    SphericalHarmonicsL2
    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)