AddSphericalHarmonicsL2
Perform the sum of two arrays of SphericalHarmonicsL2.
阅读时间1 分钟最后更新于 2 小时前
Definition
- Type: Method
- Namespace: UnityEngine.LightTransport.PostProcessing
- Assembly: UnityEditor
bool AddSphericalHarmonicsL2(IDeviceContext context, BufferSlice<SphericalHarmonicsL2> A, BufferSlice<SphericalHarmonicsL2> B, BufferSlice<SphericalHarmonicsL2> sum, int probeCount)
Parameters
Device context.
Source buffer A.
Source buffer B.
Destination buffer where the sum of A and B is written.
Number of SphericalHarmonicsL2 probes to add.
Returns
Type | Description |
|---|---|
| bool | True if the operation is successfully added to the command queue in the context. |
Remarks
Sum = A + B. Each element from source buffer A is added to the corresponding element from source buffer B. The result is written into the destination buffer 'sum'.