Skip to content

Add GLSL shader node using PyOpenGL#12148

Merged
comfyanonymous merged 19 commits intomasterfrom
pysssss/basic-glsl-shader-node-glfw
Feb 20, 2026
Merged

Add GLSL shader node using PyOpenGL#12148
comfyanonymous merged 19 commits intomasterfrom
pysssss/basic-glsl-shader-node-glfw

Conversation

@pythongosssss
Copy link
Member

@pythongosssss pythongosssss commented Jan 29, 2026

  • Adds GLSL node using PyOpenGL + glfw, with EGL and OSMesa fallbacks
  • Supports simple fragment shaders with predefined uniforms available as inputs

@pythongosssss pythongosssss added the preview-gpu Creates a preview ephemeral environment for this PR (GPU available) label Jan 29, 2026
@socket-security
Copy link

socket-security bot commented Jan 29, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedpyopengl@​3.1.99810010010070
Addedglfw@​2.10.0100100100100100
Addedpyopengl-accelerate@​3.1.10100100100100100

View full report

@Kosinkadink Kosinkadink marked this pull request as ready for review February 17, 2026 02:57
Kosinkadink
Kosinkadink previously approved these changes Feb 18, 2026
Kosinkadink and others added 3 commits February 18, 2026 17:59
* Add image operation blueprints

* Add channels

* Add glow

* brightness/contrast

* hsb

* add glsl shader update system

* shader nit iteration

* add multipass for faster blur

* more fixes

* rebuild blueprints

* print -> logger

* Add edge preserving blur

* fix: move _initialized flag to end of GLContext.__init__

Prevents '_vao' attribute error when init fails partway through
and subsequent calls skip initialization due to early _initialized flag.

* update valid ranges
- threshold 0-100
- step 0+

* fix value ranges

* rebuild node to remove extra inputs

* Fix gamma step

* clamp saturation in colorize instead of wrapping

* Fix crash on 1x1 px images

* rework description

* remove unnecessary f

---------

Co-authored-by: Hunter Senft-Grupp <hunter@comfy.org>
@comfyanonymous comfyanonymous merged commit 96d6bd1 into master Feb 20, 2026
14 checks passed
@comfyanonymous comfyanonymous deleted the pysssss/basic-glsl-shader-node-glfw branch February 20, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview-gpu Creates a preview ephemeral environment for this PR (GPU available)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants