ComfyUI > Nodes > ComfyUI-Image-Effects > 🌞 God Rays

ComfyUI Node: 🌞 God Rays

Class Name

GodRaysNode

Category
Image Effects
Author
orion4d (Account age: 929days)
Extension
ComfyUI-Image-Effects
Latest Updated
2025-05-28
Github Stars
0.02K

How to Install ComfyUI-Image-Effects

Install this extension via the ComfyUI Manager by searching for ComfyUI-Image-Effects
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Image-Effects 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

🌞 God Rays Description

Simulate ethereal light beams for dramatic visual enhancements.

🌞 God Rays:

The GodRaysNode is a powerful tool designed to simulate the ethereal effect of light beams, often referred to as "god rays," streaming through an image. This node is particularly useful for artists looking to add a dramatic and atmospheric touch to their visuals, enhancing the sense of depth and realism. By manipulating various parameters, you can control the intensity, number, and length of the rays, as well as their source position and color temperature. This flexibility allows for a wide range of creative possibilities, from subtle enhancements to bold, striking effects. The node's primary function is to overlay these light beams onto an image, creating a visually captivating result that can transform the mood and tone of your artwork.

🌞 God Rays Input Parameters:

image

The image parameter is the input image to which the god rays effect will be applied. It serves as the canvas for the light beams, and the final output will be a modified version of this image with the god rays effect overlaid.

intensity

The intensity parameter controls the brightness of the god rays. A higher intensity value results in more pronounced and vivid rays, while a lower value produces a subtler effect. The default value is 0.5, with a range from 0.0 to 2.0, allowing for fine-tuning of the effect's strength.

num_rays

The num_rays parameter specifies the number of light beams to be generated. More rays can create a denser and more dramatic effect, while fewer rays may result in a more understated look. The default is 8 rays, with a minimum of 3 and a maximum of 20, providing flexibility in the visual outcome.

ray_length

The ray_length parameter determines the length of the god rays relative to the image dimensions. A longer ray length can enhance the dramatic impact, while shorter rays may offer a more subtle effect. The default value is 0.8, with a range from 0.1 to 2.0, allowing for customization based on the desired visual style.

source_x

The source_x parameter sets the horizontal position of the light source as a fraction of the image width. This allows you to control where the rays originate, with a default value of 0.5, ranging from 0.0 to 1.0, enabling precise placement of the light source.

source_y

The source_y parameter sets the vertical position of the light source as a fraction of the image height. Similar to source_x, this parameter allows for control over the origin of the rays, with a default value of 0.2, ranging from 0.0 to 1.0.

color_temp

The color_temp parameter adjusts the color temperature of the god rays, influencing their hue. A lower value results in warmer tones, while a higher value produces cooler tones. The default is 3000.0, with a range from 2000.0 to 8000.0, allowing for a wide spectrum of color effects.

decay

The decay parameter controls how quickly the intensity of the rays diminishes along their length. A higher decay value results in rays that fade out more quickly, while a lower value maintains their brightness over a longer distance. The default is 0.8, with a range from 0.1 to 1.0.

🌞 God Rays Output Parameters:

IMAGE

The output is an IMAGE parameter, which is the original input image with the god rays effect applied. This modified image showcases the added light beams, enhancing the visual appeal and depth of the scene. The output image retains the same dimensions as the input, ensuring consistency in size and format.

🌞 God Rays Usage Tips:

  • Experiment with the intensity and num_rays parameters to achieve the desired level of drama and atmosphere in your image. Higher values can create a more striking effect, while lower values may be suitable for subtle enhancements.
  • Adjust the source_x and source_y parameters to position the light source in a way that complements the composition of your image. This can help in directing the viewer's attention to specific areas.
  • Use the color_temp parameter to match the mood of your image. Warmer tones can evoke a sense of warmth and nostalgia, while cooler tones may convey a more serene or mysterious atmosphere.

🌞 God Rays Common Errors and Solutions:

Image shape mismatch

  • Explanation: This error occurs when the input image does not have the expected shape or dimensions, which can prevent the node from processing it correctly.
  • Solution: Ensure that the input image is in the correct format, typically a 3D tensor for single images or a 4D tensor for batches. Check the dimensions and reshape the image if necessary.

Invalid parameter value

  • Explanation: This error arises when one or more input parameters are set to values outside their allowed range.
  • Solution: Double-check the values of all input parameters to ensure they fall within the specified ranges. Adjust any parameters that are out of bounds to valid values.

Missing input image

  • Explanation: This error occurs when no image is provided as input to the node.
  • Solution: Make sure to supply a valid image as input before executing the node. Verify that the image path or reference is correct and accessible.

🌞 God Rays Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Image-Effects
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 Playground, enabling artists to harness the latest AI tools to create incredible art.