---
title: "Relight 2D"
url: "https://help.maxon.net/ag/en-us/Content/html/Modifier_image_stylize_relight2D.html"
section_path: "Modifiers > Image > Stylize > Relight 2D"
description: "Relight an image according to a normal map. The light model is a directional light."
---

# Relight 2D

## Brief Description

Relight an image according to a normal map. The light model is a directional light.

## Controls

| Parameter / Script Name | Type | Default | Function |
| --- | --- | --- | --- |
| `Enabled / enabled` | Boolean | On |  |
| `Red / process_red` | Boolean | On | Enable the red channel in output. Otherwise if there's a source the main source content is returned, else 0. |
| `Green / process_green` | Boolean | On | Enable the green channel in output. Otherwise if there's a source the main source content is returned, else 0. |
| `Blue / process_blue` | Boolean | On | Enable the blue channel in output. Otherwise if there's a source the main source content is returned, else 0. |
| `Alpha / process_alpha` | Boolean | On | Enable the alpha channel in output. Otherwise if there's a source the main source content is returned, else 0. |
| `Normal Map / normal_map` | Image | - |  |
| `Angle / angle` | Float | 0 |  |
| `Altitude / elevation` | Float | 0 |  |
| `Light Color / light_color` | Color | 1, 1, 1, 1 |  |
| `Light Mode / light_mode` | Choice | Screen | *Add*: Ac + Dc — Adds source to destination.<br>*Color Dodge*: if Ac \< 1 → min(1, Bc/(1 − Ac)); else 1.<br>*Lighten*: max(Ac, Bc).<br>*Linear Dodge*: min(Ac + Bc, 1).<br>*Screen*: Ac + Bc − Ac×Bc.<br>*Hard-light*: multiply/screen based on Ac.<br>*Hard Mix*: vivid-light threshold.<br>*Linear Light*: burn/dodge depending on Ac.<br>*Overlay*: multiply/screen depending on Bc.<br>*Pin Light*: removes mid-tones.<br>*Soft Light*: multi-branch soft-light function.<br>*Vivid Light*: burn/dodge mix.<br>*Difference*: abs(A - B).<br>*Divide*: Ac / Bc (if valid; else 0).<br>*Exclusion*: Ac + Bc − 2AcBc.<br>*Minus*: Ac − Bc.<br>*Subtract*: Bc − Ac.<br>*Color*: SetLum(Ac, Lum(Bc)).<br>*Hue*: SetLum(SetSat(Ac, Sat(Bc)), Lum(Bc)).<br>*Luminosity*: SetLum(Bc, Lum(Ac)).<br>*Saturation*: SetLum(SetSat(Bc, Sat(Ac)), Lum(Bc)).<br>*Replace*: Ac.<br>*Destination Atop*: Bca×Aa + Aca×(1−Ba).<br>*Destination Out*: Ba×Bc×(1−Aa).<br>*Destination Over*: Aa×(1−Ba) + Bc.<br>*Destination In*: Bc×Aa.<br>*Source Atop*: Ac×Ba + Bc×(1−Aa).<br>*Source Out*: Ac×(1−Ba).<br>*Normal*: Ac + Bc×(1−Aa).<br>*Source In*: Ac×Ba.<br>*Xor*: Ac×(1−Ba) + Bc×(1−Aa).<br>*Average*: (Ac + Bc)/2.<br>*Conjoint Over*: conditional on Aa ≤ Ba.<br>*Disjoint Over*: conditional on Aa + Ba ≥ 1.<br>*Geometric*: 2AcBc/(Ac + Bc).<br>*Grain Extract*: Bc − Ac + 0.5.<br>*Grain Merge*: Bc + Ac − 0.5.<br>*Hypot*: sqrt(Ac² + Bc²).<br>*Reflect*: Aa²/(1−Ba).<br>*Color Burn*: 1 − min(1, (1−Bc)/Ac).<br>*Darken*: min(Ac, Bc).<br>*Linear Burn*: Bc + Ac − 1.<br>*Multiply*: Ac × Bc.<br>*Multiply (Math)*: Ac × Bc (negatives preserved). |
| `Shadow Color / shadow_color` | Color | 0, 0, 0, 0.75 |  |
| `Shadow Mode / shadow_mode` | Choice | Multiply | *Add*: Ac + Dc.<br>*Color Dodge*: if Ac \< 1 → Bc/(1−Ac); else 1.<br>*Lighten*: max(Ac, Bc).<br>*Linear Dodge*: min(Ac + Bc, 1).<br>*Screen*: Ac + Bc − Ac×Bc.<br>*Hard-light*: multiply/screen based on Ac.<br>*Hard Mix*: vivid-light threshold.<br>*Linear Light*: burn/dodge based on Ac.<br>*Overlay*: depends on Bc.<br>*Pin Light*: removes mid-tones.<br>*Soft Light*: multi-branch function.<br>*Vivid Light*: burn/dodge mix.<br>*Difference*: abs(A - B).<br>*Divide*: Ac/Bc (if valid).<br>*Exclusion*: Ac + Bc - 2AcBc.<br>*Minus*: Ac - Bc.<br>*Subtract*: Bc - Ac.<br>*Color*: SetLum(Ac, Lum(Bc)).<br>*Hue*: SetLum(SetSat(Ac, Sat(Bc)), Lum(Bc)).<br>*Luminosity*: SetLum(Bc, Lum(Ac)).<br>*Saturation*: SetLum(SetSat(Bc, Sat(Ac)), Lum(Bc)).<br>*Replace*: Ac.<br>*Destination Atop*: Bca×Aa + Aca×(1−Ba).<br>*Destination Out*: Ba×Bc×(1−Aa).<br>*Destination Over*: Aa×(1−Ba) + Bc.<br>*Destination In*: Bc×Aa.<br>*Source Atop*: Ac×Ba + Bc×(1−Aa).<br>*Source Out*: Ac×(1−Ba).<br>*Normal*: Ac + Bc×(1−Aa).<br>*Source In*: Ac×Ba.<br>*Xor*: Ac×(1−Ba) + Bc×(1−Aa).<br>*Average*: (Ac + Bc)/2.<br>*Conjoint Over*: depends on Aa ≤ Ba.<br>*Disjoint Over*: depends on Aa + Ba ≥ 1.<br>*Geometric*: 2AcBc/(Ac + Bc).<br>*Grain Extract*: Bc − Ac + 0.5.<br>*Grain Merge*: Bc + Ac − 0.5.<br>*Hypot*: sqrt(Ac² + Bc²).<br>*Reflect*: Aa²/(1−Ba).<br>*Color Burn*: 1 − min(1, (1−Bc)/Ac).<br>*Darken*: min(Ac, Bc).<br>*Linear Burn*: Bc + Ac − 1.<br>*Multiply*: Ac × Bc.<br>*Multiply (Math)*: Ac × Bc. |
| `Blend With Source / enable_blend_with_source` | Boolean | On |  |
| `Mask / mask` | Image | - |  |
| `Mix / mix_with_source` | Float | 1 | Dissolves between original image at 0 and the effect at 1. |
