AddSphericalHarmonicsL2
Perform the sum of two arrays of SphericalHarmonicsL2 element-wise.
읽는 시간 1분최근 업데이트: 3시간 전
Definition
- Type: Method
- Namespace: UnityEngine.LightTransport.PostProcessing
- Assembly: UnityEngine.CoreModule
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'.