Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added an updating uniform that can be used to animate GLSL shaders. As discussed in #295
After looking at the different options available already in picom I was able to have a pretty limited changeset to get the effect I wanted. If you want to test it you can use this shader I wrote:
Then run picom with these changes and the following flags (This assumes you have the previous shader saved to
~/shine.glsl
):picom --sw-opti --benchmark 100000 --no-use-damage --backend glx --glx-fshader-win "$(cat ~/shine.glsl)"
It should look something like this:
https://streamable.com/e0x7r
Some issues:
I really think with a few more options you could do some pretty powerful stuff, but it might be out of the scope of this pull request. Some basic stuff that comes to mind: