Add fog and adjust shadows
Add fog to a scene, tune shadow quality, and add and configure lights in Unity Spark.
Read time 2 minutesLast updated 3 hours ago
Fog adds atmosphere to your environment and can hide the edge of a level. Shadows come from the scene's main directional light (the sun), and their settings balance sharpness against performance.
To open the Scene Settings window, open the Window menu (⋯) of any window group and select Add window > Scene Settings. For a description of each fog and shadow setting, refer to Scene Settings window reference.
Add fog
New projects start with a light fog already enabled.
To add or change fog:
- In the Scene Settings window, enable Fog. The fog settings become available.
- Set Fog mode to one of the following:
- Linear: Fog starts at a distance (Start) and is solid by End. Use it to hide the edge of a level.
- Exponential: Fog thickens gradually, set by Density. Use it for mist and atmosphere.
- Set Color to match your sky, for example, warm orange for a sunset or blue-gray for night.
Tune shadows
In the Shadows section of the Scene Settings window, adjust the following settings:
- Distance: A shorter distance gives sharper shadows.
- Resolution: A higher resolution is sharper but uses more processing power.
- Cascades: More cascades keep shadows near the camera crisp. With more than one, use the Split sliders to set where each level ends.
Add and configure lights
To add a light, in the Hierarchy window, select Add object (+) > Directional Light.
To configure a light:
- Select the light.
- In the Inspector window, change its Type, Color, Intensity, and Shadow Type.
Spot and point lights also have a Range, and spot lights a Spot Angle.