ComfyUI/blueprints/.glsl
Terry Jia 00d2f4047d
fix: use textureSize instead of u_resolution for texel size in blur/sharpen shaders (#13347)
* fix: use textureSize instead of u_resolution for texel size in blur/sharpen shaders

* fix: remove unused u_resolution uniform and fix Glow shader texelSize

---------

Co-authored-by: guill <jacob.e.segal@gmail.com>
2026-04-23 20:42:22 -07:00
..
Brightness_and_Contrast_1.frag
Chromatic_Aberration_16.frag
Color_Adjustment_15.frag
Color_Balance_15.frag feat: add curve inputs and raise uniform limit for GLSL shader node (#13158) 2026-03-26 21:45:05 -04:00
Color_Curves_8.frag fix: avoid nested sampler function calls in Color Curves shader (#13209) 2026-03-28 13:13:05 -04:00
Edge-Preserving_Blur_128.frag
Film_Grain_15.frag
Glow_30.frag fix: use textureSize instead of u_resolution for texel size in blur/sharpen shaders (#13347) 2026-04-23 20:42:22 -07:00
Hue_and_Saturation_1.frag
Image_Blur_1.frag fix: use textureSize instead of u_resolution for texel size in blur/sharpen shaders (#13347) 2026-04-23 20:42:22 -07:00
Image_Channels_23.frag
Image_Levels_1.frag
README.md
Sharpen_23.frag fix: use textureSize instead of u_resolution for texel size in blur/sharpen shaders (#13347) 2026-04-23 20:42:22 -07:00
Unsharp_Mask_26.frag fix: use textureSize instead of u_resolution for texel size in blur/sharpen shaders (#13347) 2026-04-23 20:42:22 -07:00
update_blueprints.py

GLSL Shader Sources

This folder contains the GLSL fragment shaders extracted from blueprint JSON files for easier editing and version control.

File Naming Convention

{Blueprint_Name}_{node_id}.frag

  • Blueprint_Name: The JSON filename with spaces/special chars replaced by underscores
  • node_id: The GLSLShader node ID within the subgraph

Usage

# Extract shaders from blueprint JSONs to this folder
python update_blueprints.py extract

# Patch edited shaders back into blueprint JSONs
python update_blueprints.py patch

Workflow

  1. Run extract to pull current shaders from JSONs
  2. Edit .frag files
  3. Run patch to update the blueprint JSONs
  4. Test
  5. Commit both .frag files and updated JSONs