ComfyUI Node
ReLight π‘
Creates realistic lighting effects with multiple light sources, colored lights, and 3D lighting simulation with subject occlusion
ReLight π‘
- image
- mask
- image
- mask
- debug_image
βpresetNoneβΊ
βnum_light_sources1βΊ
βpreserve_positioningtrueβΊ
βshow_debug_infofalseβΊ
βuse_colored_lightsfalseβΊ
βuse_gradient_modefalseβΊ
βapply_3d_lightingtrueβΊ
βlight_directionNo OcclusionβΊ
βremove_backgroundtrueβΊ
βeffect_strength1.0βΊ
βmask_blur50βΊ
βrim_amplification2.0βΊ
βlight_position_x0.50βΊ
βlight_position_y0.50βΊ
βinner_circle_radius0.40βΊ
βouter_circle_radius0.70βΊ
βlight_color_r255βΊ
βlight_color_g255βΊ
βlight_color_b255βΊ
βlight_intensity1.0βΊ
βinner_brightness10βΊ
βinner_contrast5βΊ
βinner_saturation5βΊ
βinner_temperature0βΊ
βinner_tint0βΊ
βinner_gamma1.00βΊ
βouter_brightness-10βΊ
βouter_contrast0βΊ
βouter_saturation-10βΊ
βouter_temperature0βΊ
βouter_tint0βΊ
βouter_gamma1.10βΊ
βlight2_position_x0.80βΊ
βlight2_position_y0.20βΊ
βlight2_inner_radius0.30βΊ
βlight2_outer_radius0.60βΊ
βlight2_color_r180βΊ
βlight2_color_g180βΊ
βlight2_color_b255βΊ
βlight2_intensity0.7βΊ
βlight3_position_x0.30βΊ
βlight3_position_y0.80βΊ
βlight3_inner_radius0.25βΊ
βlight3_outer_radius0.50βΊ
βlight3_color_r255βΊ
βlight3_color_g150βΊ
βlight3_color_b120βΊ
βlight3_intensity0.5βΊ
Categoryimage/lighting
Inputs (50)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | The input image to apply lighting effects to | |
| preset | COMBO | None | Select a preset or 'None' for custom settings |
| num_light_sources | INT | 11β3 | Number of light sources (1-3) |
| preserve_positioning | BOOLEAN | true | Keep manual light positions when changing presets? |
| show_debug_info | BOOLEAN | false | Output a debug visualization image? |
| use_colored_lights | BOOLEAN | false | Use additive colored light instead of color correction? |
| use_gradient_mode | BOOLEAN | false | Use directional gradient masks instead of radial? |
| apply_3d_lighting | BOOLEAN | true | Simulate light occlusion by subject? Requires 'mask' input. |
| light_direction | COMBO | No Occlusion | How light interacts with subject (Requires 'mask' and 'Apply 3D Lighting') |
| remove_background | BOOLEAN | true | Composite final result using mask? (Note: Ignored for 'Behind Subject' & 'In Front of Subject' directions) |
| effect_strength | FLOAT | 1.00β5 | Overall intensity multiplier for lighting adjustments/colors |
| mask_blur | FLOAT | 500β200 | Blur radius for light mask edges (smoother transitions) |
| rim_amplification | FLOAT | 2.00β10 | Intensity boost specifically for rim light component (when 'Behind Subject') |
| light_position_x | FLOAT | 0.500β1 | Light 1: Horizontal position (0=left, 1=right) |
| light_position_y | FLOAT | 0.500β1 | Light 1: Vertical position (0=top, 1=bottom) |
| inner_circle_radius | FLOAT | 0.400β1 | Light 1: Inner radius (strongest effect area) |
| outer_circle_radius | FLOAT | 0.700β1 | Light 1: Outer radius (falloff area) |
| light_color_r | INT | 2550β255 | Light 1: Red color (if 'Use Colored Lights' is True) |
| light_color_g | INT | 2550β255 | Light 1: Green color (if 'Use Colored Lights' is True) |
| light_color_b | INT | 2550β255 | Light 1: Blue color (if 'Use Colored Lights' is True) |
| light_intensity | FLOAT | 1.00β3 | Light 1: Intensity (if 'Use Colored Lights' is True) |
| inner_brightness | FLOAT | 10-100β100 | Light 1: Inner area brightness (Color Correction mode) |
| inner_contrast | FLOAT | 5-100β100 | Light 1: Inner area contrast (Color Correction mode) |
| inner_saturation | FLOAT | 5-100β100 | Light 1: Inner area saturation (Color Correction mode) |
| inner_temperature | FLOAT | 0-100β100 | Light 1: Inner area temperature (-100=cool, 100=warm) |
| inner_tint | FLOAT | 0-100β100 | Light 1: Inner area tint (-100=magenta, 100=green) |
| inner_gamma | FLOAT | 1.000.1β5 | Light 1: Inner area gamma |
| outer_brightness | FLOAT | -10-100β100 | Light 1: Outer area brightness (Color Correction mode) |
| outer_contrast | FLOAT | 0-100β100 | Light 1: Outer area contrast (Color Correction mode) |
| outer_saturation | FLOAT | -10-100β100 | Light 1: Outer area saturation (Color Correction mode) |
| outer_temperature | FLOAT | 0-100β100 | Light 1: Outer area temperature |
| outer_tint | FLOAT | 0-100β100 | Light 1: Outer area tint |
| outer_gamma | FLOAT | 1.100.1β5 | Light 1: Outer area gamma |
| maskopt | MASK | Foreground mask (white=subject, black=background). Required for occlusion ('Apply 3D Lighting') and optional compositing ('Remove Background') | |
| light2_position_xopt | FLOAT | 0.800β1 | Light 2: Horizontal position |
| light2_position_yopt | FLOAT | 0.200β1 | Light 2: Vertical position |
| light2_inner_radiusopt | FLOAT | 0.300β1 | Light 2: Inner radius |
| light2_outer_radiusopt | FLOAT | 0.600β1 | Light 2: Outer radius |
| light2_color_ropt | INT | 1800β255 | Light 2: Red color |
| light2_color_gopt | INT | 1800β255 | Light 2: Green color |
| light2_color_bopt | INT | 2550β255 | Light 2: Blue color |
| light2_intensityopt | FLOAT | 0.70β3 | Light 2: Intensity (Colored mode) |
| light3_position_xopt | FLOAT | 0.300β1 | Light 3: Horizontal position |
| light3_position_yopt | FLOAT | 0.800β1 | Light 3: Vertical position |
| light3_inner_radiusopt | FLOAT | 0.250β1 | Light 3: Inner radius |
| light3_outer_radiusopt | FLOAT | 0.500β1 | Light 3: Outer radius |
| light3_color_ropt | INT | 2550β255 | Light 3: Red color |
| light3_color_gopt | INT | 1500β255 | Light 3: Green color |
| light3_color_bopt | INT | 1200β255 | Light 3: Blue color |
| light3_intensityopt | FLOAT | 0.50β3 | Light 3: Intensity (Colored mode) |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | The relit image |
| mask | MASK | Pass-through of the input mask (black if none connected) |
| debug_image | IMAGE | Visualization of light positions and masks (enable 'show_debug_info') |