Creating Light-Source Fog In Unity HDRP

Today I am creating some fog for light sources using Post Processing, for atmospheric effect.

Vincent Taylor
2 min readJun 15, 2022

Today’s Objective: Use the Post Processing module for fog to create Volumetric fog in my scene.

Volumetric Lighting & Fog:

Volumetric Lighting”, also known as “God Rays”, is a lighting technique used in computer graphics to visualize light rays to a rendered scene.

Examples include seeing sun rays shining indoors through a window, or seeing light rays shining over a foggy mountain.

Volumetric lighting is used to give the effect of light passing through airborne particles such as dust, fog, or similar particles.

Creating Volumetric Lighting/Fog:

In order to create volumetric fog in Unity HDRP, there are a few steps involved, but overall the process is simple.

First, enable Volumetrics on the realtime light source.

Next, add a Post Processing Volume with a Fog module.

Now your lights (except area lights) will be volumetric, showing the light rays as if in fog.

Global (at least for that Volume) settings can be changed on the PP Volume…

… While Light-specific settings are on the light source.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Vincent Taylor
Vincent Taylor

Written by Vincent Taylor

Unity game developer / C# Programmer / Gamer. Australian (Tasmanian) indie games developer for 10+ years. Currently looking for games industry employment.

No responses yet

Write a response