# ScaleSphericalHarmonicsL2(IDeviceContext, BufferSlice<SphericalHarmonicsL2>, BufferSlice<SphericalHarmonicsL2>, int, float)

> Scale an array of SphericalHarmonicsL2 probes.

## Definition

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

```csharp
public bool ScaleSphericalHarmonicsL2(IDeviceContext context, BufferSlice<SphericalHarmonicsL2> shIn, BufferSlice<SphericalHarmonicsL2> shOut, int probeCount, float scale)
```

### Parameters

**** (\[IDeviceContext]\(/engine/6000.5/script-reference/unityengine/lighttransport/idevicecontext)): Device context.**** (\[BufferSlice\<SphericalHarmonicsL2>]\(/engine/6000.5/script-reference/unityengine/lighttransport/bufferslice1)): Source buffer of [SphericalHarmonicsL2](/engine/6000.5/script-reference/unityengine/rendering/sphericalharmonicsl2.md) probes to scale.**** (\[BufferSlice\<SphericalHarmonicsL2>]\(/engine/6000.5/script-reference/unityengine/lighttransport/bufferslice1)): Destination buffer where the scaled [SphericalHarmonicsL2](/engine/6000.5/script-reference/unityengine/rendering/sphericalharmonicsl2.md) probes are written.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Number of [SphericalHarmonicsL2](/engine/6000.5/script-reference/unityengine/rendering/sphericalharmonicsl2.md) probes to scale.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Scaling factor.

### 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

shOut = shIn \* scale.
