Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-NKD-VFX-Tools > 😺NKD Relight

ComfyUI Node: 😺NKD Relight

Class Name

RelightingNode

Category
😺NKD Nodes/Utils
Author
Nekodificador (Account age: 2602days)
Extension
ComfyUI-NKD-VFX-Tools
Latest Updated
2026-07-23
Github Stars
0.06K

How to Install ComfyUI-NKD-VFX-Tools

Install this extension via the ComfyUI Manager by searching for ComfyUI-NKD-VFX-Tools
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-NKD-VFX-Tools in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

😺NKD Relight Description

Enhance image lighting with RGB, normals, depth data; simulate various lighting conditions creatively for AI artists.

😺NKD Relight:

The RelightingNode is a powerful tool designed to enhance and manipulate the lighting of an image by utilizing various input data such as RGB, normals, depth, and optional parameters like albedo and roughness. This node allows you to simulate different lighting conditions and effects, providing a flexible and creative way to relight scenes without the need for complex 3D rendering software. By adjusting the lighting configuration, you can achieve a wide range of visual styles and moods, making it an essential tool for AI artists looking to refine and enhance their digital artwork. The node's primary goal is to offer a user-friendly interface for relighting images, enabling artists to focus on their creative vision while the node handles the technical aspects of lighting simulation.

😺NKD Relight Input Parameters:

rgb

The rgb parameter is a required input that represents the base image to be relit. It is crucial as it serves as the foundation upon which all lighting adjustments are applied. This parameter should be an image in RGB format, and its quality and resolution will directly impact the final relit image.

normals

The normals parameter is a required input that provides the surface normals of the image. Normals are essential for determining how light interacts with surfaces, affecting the direction and intensity of the lighting. This parameter should be an image in RGB format, where each pixel encodes the normal vector of the corresponding surface point.

depth

The depth parameter is a required input that represents the depth information of the image. Depth data is used to simulate realistic lighting effects such as shadows and occlusion. This parameter should be an image in grayscale format, where the intensity of each pixel corresponds to the distance from the camera.

albedo

The albedo parameter is an optional input that provides the base color of the surfaces in the image, excluding any lighting effects. It can be used to achieve more accurate relighting results by separating the color information from the lighting. This parameter should be an image in RGB format.

roughness

The roughness parameter is an optional input that defines the surface roughness of the image. Roughness affects the scattering of light on surfaces, influencing the appearance of highlights and reflections. This parameter should be an image in grayscale format, where the intensity of each pixel represents the roughness value.

lights_config

The lights_config parameter is an optional input that specifies the configuration of the lighting setup. It is a JSON string that defines the properties of the lights, such as type, position, intensity, and color. This parameter allows for precise control over the lighting conditions and can be customized to achieve various effects. The default value is an empty JSON object {}.

unique_id

The unique_id parameter is a hidden input used internally to track and manage the relighting process. It is not intended for direct manipulation by users.

😺NKD Relight Output Parameters:

relit_image

The relit_image parameter is the output of the node, representing the final image after the relighting process. This image reflects the applied lighting adjustments and enhancements, showcasing the new lighting conditions and effects. The relit image is in RGB format and can be used for further artistic refinement or as a final piece.

😺NKD Relight Usage Tips:

  • Experiment with different lights_config settings to achieve a variety of lighting effects, from dramatic shadows to soft ambient lighting.
  • Use the albedo and roughness inputs to fine-tune the relighting results, especially when working with complex scenes or materials.
  • Ensure that the normals and depth inputs are accurate and well-aligned with the rgb image to achieve realistic lighting effects.

😺NKD Relight Common Errors and Solutions:

Invalid JSON in lights_config

  • Explanation: The lights_config parameter contains a JSON string that is not properly formatted.
  • Solution: Ensure that the JSON string is correctly formatted, with proper syntax and structure. Use a JSON validator to check for errors.

Mismatched Image Dimensions

  • Explanation: The dimensions of the input images (rgb, normals, depth, albedo, roughness) do not match.
  • Solution: Ensure that all input images have the same dimensions. Resize images if necessary to match the dimensions of the rgb image.

Missing Required Inputs

  • Explanation: One or more required inputs (rgb, normals, depth) are missing.
  • Solution: Provide all required inputs to the node. Check that each input is correctly connected and available.

😺NKD Relight Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-NKD-VFX-Tools
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

😺NKD Relight