# AddDirectionalLight(Vector3, Color, float)

> Add a directional light to the spherical harmonics.

## Definition

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

```csharp
public void AddDirectionalLight(Vector3 direction, Color color, float intensity)
```

### Parameters

**** (\[Vector3]\(/engine/6000.0/script-reference/unityengine/vector3)): The direction from the light probe to the light. The vector should be normalized for correct results.**** (\[Color]\(/engine/6000.0/script-reference/unityengine/color)): The color of the light.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The intensity of the light.

### Remarks

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