Visit ComfyUI Online for ready-to-use ComfyUI environment
Execute custom GLSL fragment shaders for image generation and effects with high flexibility and creative control.
The GLSL (JOV) π© node is designed to execute custom GLSL (OpenGL Shading Language) fragment shaders, enabling you to generate images or apply effects with high flexibility and creative control. GLSL is a high-level shading language used extensively in graphics programming for rendering images and animations. This node leverages GPU acceleration to perform efficient computations, allowing for the rapid generation of complex visual effects in real-time. By integrating this node into your image processing pipeline, you can achieve sophisticated shader effects that enhance your artistic projects.
This parameter represents the time variable in seconds, which can be used to create time-dependent effects in your shader. The default value is 0, with a step of 0.001, a minimum value of 0, and a precision of 4 decimal places.
This parameter specifies the number of frames to process in a batch. It allows you to render multiple frames in one go, which is useful for animations. The default value is 1, with a step of 1, a minimum value of 0, and a maximum value of 262144.
This parameter sets the frames per second for the rendering process. It controls the speed of the animation or the rate at which frames are generated. The default value is 24, with a step of 1, a minimum value of 1, and a maximum value of 120.
This parameter defines the width and height of the output image as a vector of two integers. The default value is (512, 512), with a minimum size defined by MIN_IMAGE_SIZE
and a step of 1.
This boolean parameter determines whether the node should wait between frames. If set to True
, the node will pause between frames, which can be useful for synchronizing with other processes. The default value is False
.
This boolean parameter allows you to reset the shader state. When set to True
, it resets the time and other state variables, which can be useful for restarting animations. The default value is False
.
This parameter takes a string containing the GLSL fragment shader code. It allows you to input custom shader code to define the visual effects. The default value is a basic shader program provided by GLSLShader.PROG_FRAGMENT
, and it supports multiline input.
The output of this node is an image generated by the GLSL fragment shader. The image reflects the visual effects defined by the shader code and the input parameters. It is returned as a tensor that can be further processed or displayed.
FRAGMENT
shader codes to create unique visual effects. You can find many GLSL shader examples online to get started.TIME
parameter to create dynamic, time-based effects. This is particularly useful for animations and interactive visuals.BATCH
parameter to render multiple frames at once, which can be helpful for generating animations or sequences of images.FPS
parameter according to the desired smoothness of your animation. Higher FPS values result in smoother animations but require more computational power.RESET
parameter to restart animations or reset the shader state when needed.PROG_HEADER
.Β© Copyright 2024 RunComfy. All Rights Reserved.