this[]
Access individual SH coefficients.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
this[int, int]
public float this[int rgb, int coefficient] { get; set; }
Parameters
Returns
Type | Description |
|---|---|
| float |
Remarks
This indexer accesses the spherical harmonics coefficients with two values. The first value is an RGB color channel index between 0 and 2. The second value is an index between 0 and 8 that combines the degree and order of the spherical harmonics in this order: the single 0th degree term, the three 1st degree terms, the five 2nd degree terms.