# sm.render.setHorizonLight

Sets the Horizon light settings.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.render.setHorizonLight(
    topColor,
    horizonColor,
    bottomColor,
    direction,
    start,
    end,
    falloff
)
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.render.md#sethorizonlight)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `topColor` | [Color](../Game-Script-Environment/Userdata/Color.md) | Color of the top of the horizon light. |
| `horizonColor` | [Color](../Game-Script-Environment/Userdata/Color.md) | Color of the horizon of the horizon light. |
| `bottomColor` | [Color](../Game-Script-Environment/Userdata/Color.md) | Color of the bottom of the horizon light. |
| `direction` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | Direction of the horizon light. |
| `start` | number | Start distance for the horizon light. (Optional) |
| `end` | number | End distance for the horizon light. (Optional) |
| `falloff` | number | Falloff factor for the horizon light. (Optional) |
