Creating Fog in Unity

Tyler Smallwood
3 min readOct 20, 2022

--

Objective: Bring in Fog prefab and set it up for HDRP.

For the first thing we will do is download the Fog prefab from FileBase.

Next is locate the fog prefab in your project folder and drag into the scene.

Some times the fog will be pink if you are using HDRP. To fix the pink issue and to allow us more control over the color of the fog. We will change the shader type. In the Project window, find the Smoke material.

Change the Shader type to Sprites/Default.

Our Fog is more opaque than transparent now.

To fix this we will adjust the alpha channel of the smoke. To do that we will select the Tint under the smoke material.

In the Color window that opens, just adjust the alpha down.

Next thing we will do is turn it to a greens color to match the test tubes that are in the scene.

With the fog selected in the Hierarchy, we can see it moving.

We will want the up speed to go a little faster. On the fog asset, we can see a particle component in the inspector.

I am wanting to have the fog go up a little quicker. To do this we will set the start speed from .1 to .5.

Next, I will set the start size to around 10.5.

I adjusted the alpha down a little more and this is the final results.

Thank you for reading and have a wonderful day!

--

--

Tyler Smallwood
Tyler Smallwood

Written by Tyler Smallwood

I am passonate on learning to program and use Unity to become a skillful Unity Developer

No responses yet