Method SetCoefficient
SetCoefficient(ref SphericalHarmonicsL2, int, Vector3)
Set a spherical harmonics coefficient.
Declaration
public static void SetCoefficient(ref SphericalHarmonicsL2 sh, int index, Vector3 coefficient)
Parameters
Type | Name | Description |
---|---|---|
SphericalHarmonicsL2 | sh | The SphericalHarmonicsL2 data structure to store information on. |
int | index | The index of the coefficient that is set (must be less than 9). |
Vector3 | coefficient | The values of the coefficient is set. |