# DirectionalLight class

Represents a light that illuminates the scene with parallel rays, as sunlight or moonlight does.

**Namespace:** [`Eremex.AvaloniaUI.Controls3D`](./index.md)  
**Assembly:** `Eremex.Avalonia.Controls3D.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls3D](https://www.nuget.org/packages/Eremex.Avalonia.Controls3D)

## Declaration

```csharp
public class DirectionalLight : DirectionLightBase
```

## Public Members

| name | description |
| --- | --- |
| [DirectionalLight](DirectionalLight/DirectionalLight.md)() | The default constructor. |
| [Direction](DirectionalLight/Direction.md) { get; set; } | Gets or sets the direction the rays travel in. The default value points along the negative Z axis, so the light illuminates surfaces that face the positive Z axis. |

## See Also

* class [DirectionLightBase](./DirectionLightBase.md)
* namespace [Eremex.AvaloniaUI.Controls3D](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls3D.dll -->
