Improving Game Visuals with Unity’s HDRP

Improve your game visuals and take them up by several notches using the High Definition Render Pipeline from Unity. By Wilmer Lin.

5 (4) · 3 Reviews

Download materials
Save for later
Share
You are currently viewing page 5 of 5 of this article. Click here to view the first page.

Exploring a More Complex Scene

This scene, of course, represents a simple lighting example. Try another set of lights with the same environment.

Open the Start scene, and save it as Night, like before. Disable the Lighting object to turn off the existing lights.

From the RW/Prefabs folder, find and drag the Lighting Night prefab into the Hierarchy. Rather than relying on a single directional light for the key light, this setup uses spotlights and area lights.

Night scene with Lighting Night prefab added and Lighting disabled

The Sky and Fog Volume located in the Lighting Night prefab will use the Night Settings Profile in the RW/Settings folder.

The Game view suddenly appears bright and foggy. Disregard how the scene looks for the moment. Baking lightmaps will fix it.

Open the Lighting window. Swap the Lighting Settings to use LightingSettings4Ultra. Otherwise, the lightmapping may appear too blotchy. You might also want to flip the Max Lightmap Size to 2048 if not already set. This increases the Lightmap texture size for higher resolution.

lighting settings window

Then, click Generate Lighting.

Wait for the scene to bake. Lightmapping takes longer since the scene has more lights. Once complete, it’s literally the difference between night and day!

Night view of the room

Understanding the Light Explorer

Open Window ▸ Rendering ▸ Light Explorer. This dialogue helps manage large sets of lights.

Light Explorer showing various lights in the scene

For example, you can easily highlight the four CeilingLight_Spot_1600lm spotlights. Shift-select multiple lights to edit them at once. Then, adjust their color and temperature to your liking.

Tip: Name your lights descriptively. A naming convention can help you find them in the Light Explorer.

For example, you can easily highlight the four CeilingLight_Spot_1600lm spotlights. Shift-select multiple lights to edit them at once. Then, adjust their color and temperature to your liking.

Walk the room with the FPS controller. Note these differences with the Daylight scene:

  • Area lights spill from the top and bottom staircase. They also form long, thin accents near the windows.
  • Blue and gold colors compliment one another. This borrows from traditional cinematic lighting.
  • The four spotlights on the ceiling cast volumetric shadows. Adjust their angles and multipliers to enhance their conical light shafts.

room with night lighting viewed from a different angle

Use the Light Explorer to tweak and rebalance light values. Don’t be afraid to experiment! Different settings can create a completely different mood and atmosphere.

Where to Go From Here?

You can download the completed project files by clicking Download Materials at the top or bottom of the tutorial.

This tutorial, of course, just scratches the surface of HDRP. To continue exploring this very deep pipeline, see the official documentation.

You can also open the HDRP template’s SampleScene, as seen below, from the Scenes directory. This showcases three distinct lighting setups with several HDRP workflows.

View from the SampleScene provided by Unity

Once ready, go back to the Night or Daylight scenes. Feel free to add some additional assets to fill out the bare room. Then, build a new lighting setup from scratch. Try your hand at designing with light!

Night scene spruced up with some custom props and some lights

With a little practice, you can channel your inner cinematographer. You might not look at a cube the same way again. :]

We hope you enjoyed this tutorial, and if you have any questions or comments, please join the forum discussion below!