In this fifth episode of a nine-part series dedicated to Atmospheric Perspective in Compositing in Blender 4.1, we will implement the shift towards blue or other colors of distant objects in the scene.
Video Transcript
In this fifth episode of a nine-part series dedicated to Atmospheric Perspective in Compositing in Blender 4.1, we will implement the shift towards blue or other colors of distant objects in the scene.
The shifting towards blue (or any other color) can be done using the output incoming from the Normalize node as a mask.

In this case, this information will be sent to the Factor input of an RGB Curve node that will act on the original image.
We then connect the output of the Blur node to the Image input of an RGB Curve node, then we connect the output of Normalize to the Factor input of RGB Curve.
Finally, we connect the output of the new RGB Curve node to the Reroute node.
We won't notice any difference in the rendering yet since we haven't modified the curves of the node.

In this RGB node, we'll need to modify the curve of the color we're interested in (which, in this case, is the blue channel).

You can assess the extent of the effect by selecting the RGB Curves node and pressing the M key multiple times, which is the shortcut for Mute, to deactivate and activate again the node.
Don't worry if you see that the color of the sky changes a lot: we'll fix it in the last video of the series.
To distinguish this RGB Curves node from other nodes of the same type, we can rename it to BLUE-SHIFT in the Label section of the Node panel, which we can open by pressing the N key.
