<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [World](./server.world.md) &gt; [setDirectionalLightIntensity](./server.world.setdirectionallightintensity.md)

## World.setDirectionalLightIntensity() method

Sets the intensity of the world's directional light.

**Signature:**

```typescript
setDirectionalLightIntensity(intensity: number): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

intensity


</td><td>

number


</td><td>

The intensity.


</td></tr>
</tbody></table>
**Returns:**

void

