Skip to content

Navigation Menu

Sign in
Sign up

feat: Add Shadert0y Plugin for GLSL Effects - #293

Open
YousufPro67 wants to merge 3 commits into
dyne:master from
YousufPro67:master
Open

feat: Add Shadert0y Plugin for GLSL Effects #293
YousufPro67 wants to merge 3 commits into
dyne:master from
YousufPro67:master

Conversation

@YousufPro67

@YousufPro67 YousufPro67 commented Aug 3, 2026
edited
Loading

Copy link
Copy Markdown

This PR adds shadert0y, a new filter plugin that allows users to render custom GLSL shaders (compatible with standard ShaderToy syntax) directly within Frei0r-supported video editors like Kdenlive.

Under the hood, the plugin uses EGL for offscreen rendering and OpenGL to process the video frames, allowing for complex, GPU-accelerated generative effects and image processing.

Build & Dependencies

  • Requires OpenGL and EGL.
  • CMake Compatibility: To ensure broad compatibility across different Linux distributions and CI environments (specifically avoiding issues with older CMake versions < 3.26 that lack FindEGL.cmake), the plugin's CMakeLists.txt uses pkg-config (pkg_check_modules) to locate the EGL libraries.
  • Added add_subdirectory (shadert0y) to src/filter/CMakeLists.txt.

Licensing
The code is licensed under GPLv2

Note on Kdenlive XML
Since Frei0r only distributes the compiled .so binaries, the Kdenlive effect XML definition and standalone build instructions are maintained in the plugin's upstream repository:
https://github.com/YousufPro67/shadert0y

Testing

  • Compiles successfully locally on Ubuntu (GCC).
  • Follows Frei0r naming conventions and plugin structure.
  • No lib prefix applied to the output .so binary.
  • Works only for Linux

Let me know if any adjustments are needed to the CMake configuration or source code to better align with the project's standards

Shader Example:

Screenshot From 2026年08月03日 01-39-23

Shader On Top Of Shader:

Video_2026年08月03日_17-35-16.mp4

luzpaz and cynthia2006 reacted with thumbs up emoji

luzpaz commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

@jaromil can you trigger the CI to test this ?

Copy link
Copy Markdown
Author

This plugin would only work for Linux; I forgot to update. Can I add an if statement for Linux systems?

jaromil reacted with thumbs up emoji

luzpaz commented Aug 17, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

What's blocking the ability to run this on Windows and macOS ?

YousufPro67 commented Aug 17, 2026
edited
Loading

Copy link
Copy Markdown
Author

This version uses EGL, which is not available on Windows/MacOS but modern Linux systems ship with it. I have added the support for Windows in the full version using WGL, but the latest plugin is too big and has incomplete support for buffers, etc. I can only add it after I find a way to add full control over buffers and custom parameters without cluttering. Even then, it's better to make it standalone with the full features and size. This is a stable version with only necessary parameters to render a shader.

jaromil commented Aug 17, 2026

Copy link
Copy Markdown
Member

today github is acting unreliable so I wouldn't take CI results as attendible.

jaromil commented Aug 17, 2026

Copy link
Copy Markdown
Member

This version uses EGL, which is not available on Windows/MacOS but modern Linux systems ship with it. I have added the support for Windows in the full version using WGL, but the latest plugin is too big and has incomplete support for buffers, etc. I can only add it after I find a way to add full control over buffers and custom parameters without cluttering. Even then, it's better to make it standalone with the full features and size. This is a stable version with only necessary parameters to render a shader.

ok well we can ship this plugin just for linux platforms then.

YousufPro67 and luzpaz reacted with heart emoji

jaromil force-pushed the master branch 5 times, most recently from 94ed1c1 to 48d7fc7 Compare August 21, 2026 10:46

jaromil commented Aug 21, 2026

Copy link
Copy Markdown
Member

should be building and working correctly now!

YousufPro67 and luzpaz reacted with hooray emoji

luzpaz commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

'All checks have passed'

jaromil and YousufPro67 reacted with thumbs up emoji

Copy link
Copy Markdown
Author

Only mine remains...

jaromil and luzpaz reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /