Class SphericalHarmonicsL2Utils
A collection of utility functions used to access and set SphericalHarmonicsL2 in a more verbose way.
Inherited Members
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. |