Class · inherits Instance
Atmosphere
The Atmosphere object pushes Roblox closer toward realistic
environments where sunlight scatters in different ways depending on density
and other air particle properties.
About Atmosphere
Fog properties are hidden when Lighting contains an Atmosphere object.
The Atmosphere object pushes Roblox closer toward realistic environments where sunlight scatters in different ways depending on density and other air particle properties. It simulates real-world "aerial perspective" and lets you control light transmission from the background sky through distant objects. Furthermore, it controls haze and glare conditions, letting you tune a perfect sunset, foggy afternoon, and more.
See also:
- Atmospheric Effects for property comparisons and example environments.
- Skybox for how to change the default skybox for games and customize the lighting.
- Post-Processing Effects for how post-processing effects can quickly improve a game's visuals with a variety of customizable filters.
Properties 6
Color
: Color3Changes theAtmospherehue for subtle environmental moods.A
Color3value which changes theAtmospherehue for subtle environmental moods. This is best combined with increasedAtmosphere.Hazeto expand the visible effect.Decay
: Color3When used with increasedAtmosphere.HazeandAtmosphere.Glare, defines the hue of theAtmosphereaway from the sun, gradually falling off fromAtmosphere.Colortowards this value.Defines the hue of the
Atmosphereaway from the sun, gradually falling off fromAtmosphere.Colortowards this value. Must be used withAtmosphere.HazeandAtmosphere.Glarelevels higher than 0 to see any effect.Density
: floatDefines the amount of particles in theAtmosphereand essentially controls how much in-game objects/terrain will be obscured by them.Defines the amount of particles in the air. The higher the density, the more particles and the more in-game objects/terrain will be obscured by them. Note that density does not directly affect the skybox — it merely affects in-game objects/terrain and visibility of the skybox through them.
Glare
: floatWhen used with increasedAtmosphere.Haze, specifies the glow/glare of theAtmospherearound the sun. More glare results in an increased effect of sunlight cast onto the sky and world.Specifies the glow/glare of the
Atmospherearound the sun. More glare results in an increased effect of sunlight cast onto the sky and world. Must be used with aAtmosphere.Hazelevel higher than 0 to see any effect.Haze
: floatDefines the haziness of theAtmospherewith a visible effect both above the horizon and into the distance.Defines the haziness of the
Atmospherewith a visible effect both above the horizon and into the distance. This can be combined withAtmosphere.Colorto create environmental moods, like a grey tint for a polluted alien planet.Offset
: floatControls how light transmits between the camera and the sky background.Controls how light transmits between the camera and the sky background. Increase this value to create a horizon silhouette against the sky or reduce it to blend distant objects into the sky for an endless and seamless open world.
Offset should be balanced against
Atmosphere.Densityand carefully tested in your place. A low offset may cause "ghosting" where the skybox can be seen through objects/terrain. This can be corrected by increasing the offset, which more clearly silhouettes distant objects/terrain against the sky, but too much offset may reveal level-of-detail "popping" for far distant terrain and meshes.
Atmosphere also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.