Shadows Midtones Highlights
The Shadows Midtones Highlights effect separately controls the shadows, midtones, and highlights of the render. Unlike Lift, Gamma, Gain, you can use this effect to precisely define the tonal range for shadows, midtones, and highlights.
Using Shadows Midtones Highlights
Shadows Midtones Highlights uses the Volume framework, so to enable and modify the shadows, midtones, or highlights of the render, you must add a Shadows Midtones Highlights override to a Volume in your Scene. To add Shadows Midtones Highlights to a Volume:
- In the Scene or Hierarchy view, select a GameObject that contains a Volume component to view it in the Inspector.
- In the Inspector, go to Add Override > Post-processing and select Shadows Midtones Highlights. HDRP now applies Shadows Midtones Highlights to any Camera this Volume affects.
API
To access and control this override at runtime, use the Volume scripting API. Because of how the Volume system works, you edit properties in a different way to standard Unity components. There are also other nuances to be aware of too, such as each property has an overrideState. This indicates to the Volume system whether to use the property value you set, or use the default value stored in the Volume Profile. For information on how to use the API correctly, see Volume scripting API.
Properties
Property | Description |
---|---|
Shadows | Use this to control the shadows. Use the trackball to select the color HDRP should shift the hue of the shadows to. Use the slider to offset the color lightness of the trackball color. |
Midtones | Use this to control the midtones. Use the trackball to select the color HDRP should shift the hue of the midtones to. Use the slider to offset the color lightness of the trackball color. |
Highlights | Use this to control the highlights. Use the trackball to select the color HDRP should shift the hue of the highlights to. Use the slider to offset the color lightness of the trackball color. |
Graph view
This graph shows the overall contribution of the Shadows (blue), Midtones (green), and Highlights (yellow). This is useful to visualize the transitions between the tonal regions.
Shadow Limits
Property | Description |
---|---|
Start | Set the start point of the transition between the shadows and the midtones of the render. |
End | Set the end point of the transition between the shadows and the midtones of the render. |
Highlight Limits
Property | Description |
---|---|
Start | Set the start point of the transition between the midtones and the highlights of the render. |
End | Set the end point of the transition between the midtones and the highlights of the render. |