libretro/glsl-shaders

use with picom

basaran opened this issue · 3 comments

Hello,

Would it be possible to use these shaders with picom or compton?

picom --backend glx --force-win-blend --glx-fshader-win "$(cat crt-caligari.glsl)"

is returning an error:

[ 01/12/2022 00:15:52.693 gl_create_shader ERROR ] Failed to compile shader with type 35632: 0:1(1): error: syntax error, unexpected NEW_IDENTIFIER

[ 01/12/2022 00:15:52.693 glx_load_prog_main ERROR ] Failed to create GLSL program.
[ 01/12/2022 00:15:52.693 session_init FATAL ERROR ] Failed to initialize the backend

Not directly. If picom/compton support user-loaded shaders, they could probably be modified to work with them fairly easily, as long as they expose the required functionality (texture coordinates, framebuffer size, etc.)

Thank you for the information. I found some shaders made for compton, I will check them.

If anybody else runs into the same need, this is the reference repo I found:

https://github.com/annoyatron255/compton-shaders

Closing.

Oh, that's great. I hadn't seen these. It looks like it's quite easy to port them over (assuming single-pass, no LUTs, etc.), and they even support parameters. Very cool :)