Channel Mixer
The Channel Mixer effect modifies the influence of each input color channel on the overall mix of the output channel. For example, if you increase the influence of the green channel on the overall mix of the red channel, all areas of the final image that are green (including neutral/monochrome) tint to a more reddish hue.
Using Channel Mixer
Channel Mixer uses the Volume framework, so to enable and modify Channel Mixer properties, you must add a Channel Mixer override to a Volume in your Scene. To add Channel Mixer 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 Channel Mixer. HDRP now applies Channel Mixer 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
Output channels
Before you modify the influence of each input channel, you must select the output color channel to influence. To do this, click the button for the channel that you want to set the influence for.
Property | Description |
---|---|
Red Output Channel | Use the slider to set the influence of each channel on the red output channel. |
Green Output Channel | Use the slider to set the influence of each channel on the green output channel. |
Blue Output Channel | Use the slider to set the influence of each channel on the blue output channel. |