y4my4my4m / kde-shader-wallpaper

KDE / Plasma - Shader Wallpaper plugin
GNU General Public License v3.0
247 stars 13 forks source link

[Feature Request] Chimera's Breath shader #41

Open Anonymous4045 opened 7 months ago

Anonymous4045 commented 7 months ago

With shaders being able to react to the mouse now, like in CubeLines, one shader I think would be really cool is fluid simulation that interacts with the cursor. One example on ShaderToys is Chimera's Breath. I tried compiling the source with qsb, but I'm not sure how any of this works and ran into many errors.

y4my4my4m commented 7 months ago

@Anonymous4045 Indeed, that one and this one https://www.shadertoy.com/view/Xsd3DB are some shaders I hope to be able to bring to kde-shader-wallpaper.

The reason for the compilation not work is because those shaders uses buffers, which is not yet supported.

Ultimately i'd really like shaders to be able to interact with the windows too (imagine you move a window around and it creates smoke/water effect around it).

Anonymous4045 commented 7 months ago

@y4my4my4m Ah, shame. Do you know if the devs plan to add buffer support anytime soon?

y4my4my4m commented 7 months ago

@Anonymous4045 So essentially, I'm still not sure if it's possible to do or not. I've been testing stuff with ShaderEffectSource and got some results...but I still don't fully understand.

If anything, I believe it should be possible to achieve were I to make a C++ wrapper for it.