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
Inherited Members
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(SphericalHarmonicsL2, Vector4) | Construct an instance of |
Fields
Name | Description |
---|---|
ProbesOcclusion | Contains the baked shadowing data that corresponds to the |
SHAb | Contains the SH coefficients that correspond to the |
SHAg | Contains the SH coefficients that correspond to the |
SHAr | Contains the SH coefficients that correspond to the |
SHBb | Contains the SH coefficients that correspond to the |
SHBg | Contains the SH coefficients that correspond to the |
SHBr | Contains the SH coefficients that correspond to the |
SHC | Contains the SH coefficients that correspond to the |
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. |