Nodes/ComfyUI-ReLight/ReLight πŸ’‘
ComfyUI Node

ReLight πŸ’‘

Creates realistic lighting effects with multiple light sources, colored lights, and 3D lighting simulation with subject occlusion

By EnragedAntelopeΒ·Created about a year agoΒ·Updated 3 days agoΒ· 102
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)

NameTypeDefaultDescription
imageIMAGEThe input image to apply lighting effects to
presetCOMBONoneSelect a preset or 'None' for custom settings
num_light_sourcesINT11–3Number of light sources (1-3)
preserve_positioningBOOLEANtrueKeep manual light positions when changing presets?
show_debug_infoBOOLEANfalseOutput a debug visualization image?
use_colored_lightsBOOLEANfalseUse additive colored light instead of color correction?
use_gradient_modeBOOLEANfalseUse directional gradient masks instead of radial?
apply_3d_lightingBOOLEANtrueSimulate light occlusion by subject? Requires 'mask' input.
light_directionCOMBONo OcclusionHow light interacts with subject (Requires 'mask' and 'Apply 3D Lighting')
remove_backgroundBOOLEANtrueComposite final result using mask? (Note: Ignored for 'Behind Subject' & 'In Front of Subject' directions)
effect_strengthFLOAT1.00–5Overall intensity multiplier for lighting adjustments/colors
mask_blurFLOAT500–200Blur radius for light mask edges (smoother transitions)
rim_amplificationFLOAT2.00–10Intensity boost specifically for rim light component (when 'Behind Subject')
light_position_xFLOAT0.500–1Light 1: Horizontal position (0=left, 1=right)
light_position_yFLOAT0.500–1Light 1: Vertical position (0=top, 1=bottom)
inner_circle_radiusFLOAT0.400–1Light 1: Inner radius (strongest effect area)
outer_circle_radiusFLOAT0.700–1Light 1: Outer radius (falloff area)
light_color_rINT2550–255Light 1: Red color (if 'Use Colored Lights' is True)
light_color_gINT2550–255Light 1: Green color (if 'Use Colored Lights' is True)
light_color_bINT2550–255Light 1: Blue color (if 'Use Colored Lights' is True)
light_intensityFLOAT1.00–3Light 1: Intensity (if 'Use Colored Lights' is True)
inner_brightnessFLOAT10-100–100Light 1: Inner area brightness (Color Correction mode)
inner_contrastFLOAT5-100–100Light 1: Inner area contrast (Color Correction mode)
inner_saturationFLOAT5-100–100Light 1: Inner area saturation (Color Correction mode)
inner_temperatureFLOAT0-100–100Light 1: Inner area temperature (-100=cool, 100=warm)
inner_tintFLOAT0-100–100Light 1: Inner area tint (-100=magenta, 100=green)
inner_gammaFLOAT1.000.1–5Light 1: Inner area gamma
outer_brightnessFLOAT-10-100–100Light 1: Outer area brightness (Color Correction mode)
outer_contrastFLOAT0-100–100Light 1: Outer area contrast (Color Correction mode)
outer_saturationFLOAT-10-100–100Light 1: Outer area saturation (Color Correction mode)
outer_temperatureFLOAT0-100–100Light 1: Outer area temperature
outer_tintFLOAT0-100–100Light 1: Outer area tint
outer_gammaFLOAT1.100.1–5Light 1: Outer area gamma
maskoptMASKForeground mask (white=subject, black=background). Required for occlusion ('Apply 3D Lighting') and optional compositing ('Remove Background')
light2_position_xoptFLOAT0.800–1Light 2: Horizontal position
light2_position_yoptFLOAT0.200–1Light 2: Vertical position
light2_inner_radiusoptFLOAT0.300–1Light 2: Inner radius
light2_outer_radiusoptFLOAT0.600–1Light 2: Outer radius
light2_color_roptINT1800–255Light 2: Red color
light2_color_goptINT1800–255Light 2: Green color
light2_color_boptINT2550–255Light 2: Blue color
light2_intensityoptFLOAT0.70–3Light 2: Intensity (Colored mode)
light3_position_xoptFLOAT0.300–1Light 3: Horizontal position
light3_position_yoptFLOAT0.800–1Light 3: Vertical position
light3_inner_radiusoptFLOAT0.250–1Light 3: Inner radius
light3_outer_radiusoptFLOAT0.500–1Light 3: Outer radius
light3_color_roptINT2550–255Light 3: Red color
light3_color_goptINT1500–255Light 3: Green color
light3_color_boptINT1200–255Light 3: Blue color
light3_intensityoptFLOAT0.50–3Light 3: Intensity (Colored mode)

Outputs (3)

NameTypeDescription
imageIMAGEThe relit image
maskMASKPass-through of the input mask (black if none connected)
debug_imageIMAGEVisualization of light positions and masks (enable 'show_debug_info')