neovide icon indicating copy to clipboard operation
neovide copied to clipboard

[Feature] Support Skia Shaders for Cool Effects?

Open NateAGeek opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe. I was watching a nice video on YouTube: Video They had a cool glow effect, that looks to be a post-process effect on the video... Making this effect normally just not possible... However, I saw that this project uses Skia and could whip up a sample shader to see if I can get this to work. I did, but it is hacked and I am compiling the shader on every frame, lol.

Describe the solution you'd like Maybe allow the user to store some sksl files in their user directory, like a .neovide_shaders folder or something... Then expose the setting as a config like you have?

Additional context Happy to take on this as a small project on the side, as I would like to get my feet wet more in graphics/rust. But just thought I'd see if you have any opinions before I really dig into making a full pr.

Here is my output, and I'll make a PR example soon. image

NateAGeek avatar Dec 12 '22 05:12 NateAGeek

#1671 That is the PR with the sample code, feel free to tell me any feedback.

NateAGeek avatar Dec 12 '22 06:12 NateAGeek

Demo looks cool! It would be a nice addition to have some shaders for neovim, give it a cool-retro-term kindof look

I think it would be a good idea to precompile shaders rather than recompile every frame, if thats possible

shaunsingh avatar Dec 19 '22 04:12 shaunsingh

Yeah, talked a bit with @MultisampledNight on some ideas on config. I might look into adding in a setting in the RendererSettings... But I need to take some time and see. Plus, not sure if to build some in source or what not... Just when I have time I might get to it.

NateAGeek avatar Dec 22 '22 04:12 NateAGeek

Awakening this!

p4-k4 avatar Jul 20 '24 06:07 p4-k4

This will be much easier to support once we migrate to https://github.com/neovide/vide

But, it's still far from being ready and stable.

fredizzimo avatar Jul 20 '24 09:07 fredizzimo