Commit Graph

12 Commits

Author SHA1 Message Date
Lex Darlog (DRL)
562f4ef48c _render_shader_batch() -> to GLContext method (part 1: add) 2026-02-23 02:43:32 -03:00
Lex Darlog (DRL)
c9442a21a7 _create_program() -> to GLContext method 2026-02-23 02:43:32 -03:00
Lex Darlog (DRL)
2b63d8c26a _compile_shader() -> to GLContext method 2026-02-23 02:43:31 -03:00
Lex Darlog (DRL)
0a99f6828f change separator-comment lines 2026-02-23 02:43:31 -03:00
Lex Darlog (DRL)
d2d750d9c4 globals -> concrete backend attribs 2026-02-23 01:39:03 -03:00
Lex Darlog (DRL)
40fa050d3b turn all backend-init functions into static class methods 2026-02-23 00:12:51 -03:00
Lex Darlog (DRL)
d097f7b023 singleton factory: actual implementation 2026-02-22 22:44:47 -03:00
Lex Darlog (DRL)
f241bfca81 GLContext singleton factory: scaffolding concrete classes 2026-02-22 22:44:47 -03:00
Lex Darlog (DRL)
c1877d3e4a GLContext: extract __init_try_backend() (readability + try-return) 2026-02-22 22:44:01 -03:00
Lex Darlog (DRL)
d57bf9decb gl, glfw, EGL declaration - to the top of the module 2026-02-22 21:24:31 -03:00
pythongosssss
602b2505a4
add support for pyopengl < 3.1.4 where the size parameter does not exist (#12555) 2026-02-21 06:14:57 -08:00
pythongosssss
96d6bd1a4a
Add GLSL shader node using PyOpenGL (#12148)
* adds support for executing simple glsl shaders
using moderngl package

* tidy

* Support multiple outputs

* Try fix build

* fix casing

* fix line endings

* convert to using PyOpenGL and glfw

* remove cpu support

* tidy

* add additional support for egl & osmesa backends

* fix ci
perf: only read required outputs

* add diagnostics, update mac initialization

* GLSL glueprints + node fixes (#12492)

* 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: Jedrzej Kosinski <kosinkadink1@gmail.com>
Co-authored-by: Hunter Senft-Grupp <hunter@comfy.org>
2026-02-19 23:22:13 -05:00