Struct SphericalHarmonicsL1
Structure holding Spherical Harmonic L1 coefficient.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Serializable]
public struct SphericalHarmonicsL1
Fields
shAb
Blue channel of each of the three L1 SH coefficient.
Declaration
public Vector4 shAb
Field Value
Type | Description |
---|---|
Vector4 |
shAg
Green channel of each of the three L1 SH coefficient.
Declaration
public Vector4 shAg
Field Value
Type | Description |
---|---|
Vector4 |
shAr
Red channel of each of the three L1 SH coefficient.
Declaration
public Vector4 shAr
Field Value
Type | Description |
---|---|
Vector4 |
zero
A set of L1 coefficients initialized to zero.
Declaration
public static readonly SphericalHarmonicsL1 zero
Field Value
Type | Description |
---|---|
SphericalHarmonicsL1 |
Methods
Equals(object)
Compare this SphericalHarmonicsL1 with an object.
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
object | other | The object to compare with. |
Returns
Type | Description |
---|---|
bool | Whether the SphericalHarmonicsL1 is equal to the object passed. |
Overrides
GetHashCode()
Produces an hash code of the SphericalHarmonicsL1.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash code for this SphericalHarmonicsL1. |
Overrides
Operators
operator +(SphericalHarmonicsL1, SphericalHarmonicsL1)
Sum two SphericalHarmonicsL1.
Declaration
public static SphericalHarmonicsL1 operator +(SphericalHarmonicsL1 lhs, SphericalHarmonicsL1 rhs)
Parameters
Type | Name | Description |
---|---|---|
SphericalHarmonicsL1 | lhs | First SphericalHarmonicsL1. |
SphericalHarmonicsL1 | rhs | Second SphericalHarmonicsL1. |
Returns
Type | Description |
---|---|
SphericalHarmonicsL1 | The resulting SphericalHarmonicsL1. |
operator /(SphericalHarmonicsL1, float)
Divide two SphericalHarmonicsL1.
Declaration
public static SphericalHarmonicsL1 operator /(SphericalHarmonicsL1 lhs, float rhs)
Parameters
Type | Name | Description |
---|---|---|
SphericalHarmonicsL1 | lhs | First SphericalHarmonicsL1. |
float | rhs | Second SphericalHarmonicsL1. |
Returns
Type | Description |
---|---|
SphericalHarmonicsL1 | The resulting SphericalHarmonicsL1. |
operator ==(SphericalHarmonicsL1, SphericalHarmonicsL1)
Compare two SphericalHarmonicsL1.
Declaration
public static bool operator ==(SphericalHarmonicsL1 lhs, SphericalHarmonicsL1 rhs)
Parameters
Type | Name | Description |
---|---|---|
SphericalHarmonicsL1 | lhs | First SphericalHarmonicsL1. |
SphericalHarmonicsL1 | rhs | Second SphericalHarmonicsL1. |
Returns
Type | Description |
---|---|
bool | Whether the SphericalHarmonicsL1 match. |
operator !=(SphericalHarmonicsL1, SphericalHarmonicsL1)
Check two SphericalHarmonicsL1 inequality.
Declaration
public static bool operator !=(SphericalHarmonicsL1 lhs, SphericalHarmonicsL1 rhs)
Parameters
Type | Name | Description |
---|---|---|
SphericalHarmonicsL1 | lhs | First SphericalHarmonicsL1. |
SphericalHarmonicsL1 | rhs | Second SphericalHarmonicsL1. |
Returns
Type | Description |
---|---|
bool | Whether the SphericalHarmonicsL1 are different. |
operator *(SphericalHarmonicsL1, float)
Multiply two SphericalHarmonicsL1.
Declaration
public static SphericalHarmonicsL1 operator *(SphericalHarmonicsL1 lhs, float rhs)
Parameters
Type | Name | Description |
---|---|---|
SphericalHarmonicsL1 | lhs | First SphericalHarmonicsL1. |
float | rhs | Second SphericalHarmonicsL1. |
Returns
Type | Description |
---|---|
SphericalHarmonicsL1 | The resulting SphericalHarmonicsL1. |
operator -(SphericalHarmonicsL1, SphericalHarmonicsL1)
Subtract two SphericalHarmonicsL1.
Declaration
public static SphericalHarmonicsL1 operator -(SphericalHarmonicsL1 lhs, SphericalHarmonicsL1 rhs)
Parameters
Type | Name | Description |
---|---|---|
SphericalHarmonicsL1 | lhs | First SphericalHarmonicsL1. |
SphericalHarmonicsL1 | rhs | Second SphericalHarmonicsL1. |
Returns
Type | Description |
---|---|
SphericalHarmonicsL1 | The resulting SphericalHarmonicsL1. |