Z Near Plane
Sets the depth where fogging begins.
Z-depth atmospheric fog
Applies colored fog according to Z-depth so distant regions can fade progressively into an atmospheric color.
Applies colored fog according to Z-depth so distant regions can fade progressively into an atmospheric color.
Overview
Applies colored fog according to Z-depth so distant regions can fade progressively into an atmospheric color.
Fog maps depth values between a near and far plane into opacity. Pixels near the chosen near plane stay clearer, while pixels approaching the far plane receive more of the fog color.
Fog maps depth values between a near and far plane into opacity. Pixels near the chosen near plane stay clearer, while pixels approaching the far plane receive more of the fog color.
Flow anatomy
The port structure shows how this node fits into a Fusion graph.
Source image for the operation.
Optional mask that limits where the node affects the image.
The processed result from this node.
Inspector
Start with these controls before reaching for more complicated workarounds.
Sets the depth where fogging begins.
Samples the image/depth data to set the near boundary of the fog range.
Sets the depth where fog reaches its far response.
Samples the image/depth data to set the far boundary of the fog range.
Scales how the Z values are interpreted.
Sets the RGB/Alpha color blended into distant regions.
Adjusts the red channel.
Use channel-specific controls when the operation should not affect all components equally.
Adjusts the green channel.
Use channel-specific controls when the operation should not affect all components equally.
Adjusts the blue channel.
Use channel-specific controls when the operation should not affect all components equally.
Adjusts the alpha channel.
Use channel-specific controls when the operation should not affect all components equally.
Controls overall fog strength.
Practical setup
Confirm the input actually contains useful Z-depth data.
Sample or set the near and far planes around the relevant scene range.
Adjust Z Scale only when the depth units do not match the expected range.
Choose a fog color that matches the scene atmosphere.
Increase Fog Opacity gradually and inspect edges around depth discontinuities.
Examples
Fade a rendered 3D scene into atmospheric color.
Use colored fog to separate foreground and background.
Troubleshooting
Production notes
Related nodes