# Atmosphere

Atmosphere : `Instance`

## Overview

The Atmosphere object utilizes particle density, fog, and color to create realistic atmospheric effects

## Properties

### AirColor

`Color3`

Adjusts the overall tint of the atmosphere.

#### Code Samples

```lua
local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.AirColor = Color3.fromRGB(255, 0, 0)
```

### CloudAmount

`number`

Adjusts the amount and density of clouds.

#### Code Samples

```lua
local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.CloudAmount = 0.5
```

### CloudSpeed

`number`

Sets the speed at which clouds move. Useful for simulating strong winds or slow drifting skies.

#### Code Samples

```lua
local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.CloudSpeed = 0.1
```

### CloudTexture

`string`

Specifies the cloud texture. Used to define the shape, texture, and density of the clouds.

#### Code Samples

```lua
local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.CloudTexture = "ovdrassetid://1234"
```

### Color

`Color3`

Sets the overall tint filter for the atmosphere.

#### Code Samples

### Density

`number`

Sets the density of particles in the atmosphere. Higher values result in stronger atmospheric effects.

#### Code Samples

### FogColor

`Color3`

Sets the color of the fog. Can be adjusted to match the mood or time of day.

#### Code Samples

```lua
local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.FogColor = Color3.fromRGB(255, 0, 0)
```

### FogDensity

`number`

Sets the density of the fog. Higher values result in heavier, more obscured visibility.

#### Code Samples

```lua
local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.FogDensity = 0.03
```

### FogFalloff

`number`

Adjusts how quickly the fog fades over distance. Lower values cause a gradual fade, while higher values make the fog dissipate more abruptly.

#### Code Samples

```lua
local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.FogFalloff = 0.32
```

### FogFalloffClear

`number`

Specifies the distance from the camera at which fog attenuation begins and clears.

#### Code Samples

### FogHorizon

`boolean`

When enabled, the skybox is excluded from the fog effect.

#### Code Samples

```lua
local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.FogHorizon = true
```

### FogStart

`number`

Specifies the distance from the camera at which the fog begins.

#### Code Samples

```lua
local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.FogStart = 50000
```

### GlareColor

`Color3`

Specifies the atmospheric scattering color of sunlight or moonlight.

#### Code Samples

```lua
local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.GlareColor = Color3.fromRGB(100, 0, 0)
```

### GlareFalloff

`number`

Controls the intensity of sunlight or moonlight scattering in the atmosphere.

#### Code Samples

```lua
local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.GlareFalloff = 0.02
```

### HazeColor

`Color3`

Specifies the color of light scattering caused by particles in the atmosphere.

#### Code Samples

```lua
local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.HazeColor = Color3.fromRGB(255, 0, 0)
```

### HazeSpread

`number`

Adjusts the intensity of light scattering caused by particles in the atmosphere.

#### Code Samples

```lua
local Lighting = game:GetService("Lighting")
local Atmosphere = Lighting:WaitForChild("Atmosphere")

Atmosphere.HazeSpread = 0.03
```

### StartDistance

`number`

Specifies the distance from the camera at which the atmosphere effect begins.

#### Code Samples

## Methods

## Events

## See also

{% content-ref url="/pages/3KvY0jqe4oODQNMi9cxP" %}
[Lighting](/manual/studio-manual/object/lighting.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.overdare.com/development/api-reference/classes/atmosphere.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
