# AddAmbientLight

> Add an ambient light to the spherical harmonics.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.5/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

## AddAmbientLight(Color)

Add an ambient light to the spherical harmonics.

```csharp
public void AddAmbientLight(Color color)
```

### Parameters

**** (\[Color]\(/engine/6000.5/script-reference/unityengine/color)):&#x20;

### Remarks

If the spherical harmonics represent a light probe, this function adds an ambient light into the light probe data.

## AddAmbientLight(Color)

Add an ambient light to the spherical harmonics.

```csharp
public void AddAmbientLight(in Color color)
```

### Parameters

**** (\[Color]\(/engine/6000.5/script-reference/unityengine/color)):&#x20;

### Remarks

If the spherical harmonics represent a light probe, this function adds an ambient light into the light probe data.
