<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ShaderGraph-Docs",
  "identifier" : "/documentation/ShaderGraph/Compositing/Dodge",
  "metadataVersion" : "0.1.0",
  "role" : "ShaderGraph Node",
  "symbol" : {
    "kind" : "ShaderGraph Node",
    "modules" : [
      "ShaderGraph"
    ],
    "preciseIdentifier" : "Shader_ND_dodge_float"
  },
  "title" : "Dodge"
}
-->

# Dodge

A blend operation that lightens the background layer depending on the foreground.

## Overview

B / (1 - F)

## Parameter Types

**Dodge (float):**

|Input       |Type |
                |------------|-----|
                |`Foreground`|Float|
                |`Background`|Float|
                |`Mix`       |Float|

|Output|Type |
                |------|-----|
                |`Out` |Float|

**Dodge (color4f):**

|Input       |Type         |
                |------------|-------------|
                |`Foreground`|Color4<Float>|
                |`Background`|Color4<Float>|
                |`Mix`       |Float        |

|Output|Type         |
                |------|-------------|
                |`Out` |Color4<Float>|

**Dodge (half):**

|Input       |Type|
                |------------|----|
                |`Foreground`|Half|
                |`Background`|Half|
                |`Mix`       |Half|

|Output|Type|
                |------|----|
                |`Out` |Half|

**Dodge (color3f):**

|Input       |Type         |
                |------------|-------------|
                |`Foreground`|Color3<Float>|
                |`Background`|Color3<Float>|
                |`Mix`       |Float        |

|Output|Type         |
                |------|-------------|
                |`Out` |Color3<Float>|

## Parameter Description

- `Foreground`: The foreground input. Represented by `F` in the mathmatical equation.
- `Background`: The background input. Represented by `B` in the mathmatical equation.
- `Mix`: The weight of the blend operation. The higher the `Mix`, the greater the intensity of the blend operation, and the more the effect is visually apparent. The default value is `1`. Values outside of the range `0-1` produce an undefined effect outside of the node’s intended function.

## Discussion

The Dodge node lightens each area in the background based on the lightness of the corresponding area in the foreground, represented by the equation `B / (1 - F)`.
Below is an example of a simple node graph that uses the the dodge node to lighten a brick texture:

![](images/ShaderGraph-Docs/DodgeGraph~dark.png)

Use a [`Noise 2D`](/documentation/ShaderGraph/2D-Procedural/Noise-2D) node to generate Perlin noise, and use the output of that texture as the foreground in the dodge node. This process causes the background brick texture to lighten according to the procedural pattern.
Below, the resulting texture applies to a cube:

![](images/ShaderGraph-Docs/DodgeMaterial~dark.png)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)