aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/shaders/motion-sweep.kdl
blob: 6aa8b8c0340f7ccc694b5a5c4607b1d383f7b54a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// sweep — motion
//
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
//     states { unfocused { ... } }

shaders {
    dim amount="clamp(abs(x - (t / 24) % cols) * 22, 0, 200)"
}