# ConvolveRadianceToIrradiance(IDeviceContext, BufferSlice<SphericalHarmonicsL2>, BufferSlice<SphericalHarmonicsL2>, int)

> Convolve radiance to irradiance.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LightTransport.PostProcessing](/engine/6000.7/script-reference/unityengine/lighttransport/postprocessing.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public bool ConvolveRadianceToIrradiance(IDeviceContext context, BufferSlice<SphericalHarmonicsL2> radianceIn, BufferSlice<SphericalHarmonicsL2> irradianceOut, int probeCount)
```

### Parameters

**** (\[IDeviceContext]\(/engine/6000.7/script-reference/unityengine/lighttransport/idevicecontext)): Device context.**** (\[BufferSlice\<SphericalHarmonicsL2>]\(/engine/6000.7/script-reference/unityengine/lighttransport/bufferslice1)): Source buffer of spherical radiance encoded as [SphericalHarmonicsL2](/engine/6000.7/script-reference/unityengine/rendering/sphericalharmonicsl2.md).**** (\[BufferSlice\<SphericalHarmonicsL2>]\(/engine/6000.7/script-reference/unityengine/lighttransport/bufferslice1)): Destination buffer of the convolved spherical irradiance encoded as SphericalHarmonicsL2.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Number of [SphericalHarmonicsL2](/engine/6000.7/script-reference/unityengine/rendering/sphericalharmonicsl2.md) probes to convolve.

### Returns

| Type                                                          | Description                                                                       |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the operation was successfully added to the command queue on the context. |

### Remarks

Convolve spherical radiance to irradiance on an array of [SphericalHarmonicsL2](/engine/6000.7/script-reference/unityengine/rendering/sphericalharmonicsl2.md).
