Struct SphericalHarmonicsL1
Structure holding Spherical Harmonic L1 coefficient.
Namespace: UnityEngine.Rendering
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 |
---|---|
Boolean | 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 |
---|---|
Int32 | The hash code for this SphericalHarmonicsL1. |
Overrides
Operators
Addition(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. |
Division(SphericalHarmonicsL1, Single)
Divide two SphericalHarmonicsL1.
Declaration
public static SphericalHarmonicsL1 operator /(SphericalHarmonicsL1 lhs, float rhs)
Parameters
Type | Name | Description |
---|---|---|
SphericalHarmonicsL1 | lhs | First SphericalHarmonicsL1. |
Single | rhs | Second SphericalHarmonicsL1. |
Returns
Type | Description |
---|---|
SphericalHarmonicsL1 | The resulting SphericalHarmonicsL1. |
Equality(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 |
---|---|
Boolean | Whether the SphericalHarmonicsL1 match. |
Inequality(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 |
---|---|
Boolean | Whether the SphericalHarmonicsL1 are different. |
Multiply(SphericalHarmonicsL1, Single)
Multiply two SphericalHarmonicsL1.
Declaration
public static SphericalHarmonicsL1 operator *(SphericalHarmonicsL1 lhs, float rhs)
Parameters
Type | Name | Description |
---|---|---|
SphericalHarmonicsL1 | lhs | First SphericalHarmonicsL1. |
Single | rhs | Second SphericalHarmonicsL1. |
Returns
Type | Description |
---|---|
SphericalHarmonicsL1 | The resulting SphericalHarmonicsL1. |
Subtraction(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. |