Guide to Making a Beautiful Game: Fog and Light Layers in HDRP

Hello all!

Today, I will be going over Fog and Light layers! These play well together, let’s see why!

I added point lights in my test tubes with their light layer set to “Nothing”

Adding Fog to the Scene

In HDRP, fog is part of Post-Processing volume. To use it, we will need to create or use an existing volume and add the fog override.

To be able to light the fog like the picture above:

  • The fog will need to be thick enough. Use Fog Attenuation Distance for that. The smaller the distance, the thicker the fog.
  • Volumetric Fog must be on. There you can change the color and quality.
    - Note: For some reason, Unity hides certain settings. To show them, click the gear with a circle at the top of the override. That will show quality settings.

Enabling Light Layers

Light layers are used to allow lights to illuminate certain things. This can be a huge boost to performance too. Here is how to enable them:

  1. Select the lights you wish to change.
  2. This feature is also hidden and must be shown. Go to the inspector and click the gear beside the General tab.
  3. When you do that, Light Layer will show up.
  4. In my case, I set it to Nothing. That’s what created that cool fog effect above! You can also set up a new layer, assign the objects you wish to illuminate to that layer, then set the light to that layer.

That was how I set up that cool Fog effect above!

Next, Using Cookies to Create Realistic Lighting!

Thank you for your time!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Marcus Cohee

Marcus Cohee

20 Followers

I am starting Unity and learning the ropes as I go! Let’s take this journey together!