aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/shaders/crt-phosphor.kdl
blob: a76a29575ee0f8b7df42bab0b37d4dcc558d8069 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// phosphor — crt
//
// 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 {
    grayscale amount="255"
    tint color="#33ff66" amount="80"
    dim amount="(y % 3 == 0) * 55"
    dim amount="clamp(dist(x, y, cols / 2, rows / 2) * 4, 0, 150)"
}