diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-12-26 16:19:33 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-12-27 00:13:38 -0800 |
commit | 0986f7bae724fe828692fbfb6d7af9a1950028e2 (patch) | |
tree | 90ef9eda0d3ec8e30c3be181c2e72fa33908f3ad | |
parent | fb6800db0b82acb62da281a56f596f8866f31746 (diff) |
plasma-node: fix gloom broken (oops) by 6a1c411
This puts back the gloom multiplication for non-maga mode.
It seems appropriate to let maga mode be impervious to gloom,
ignorance is bliss as they say.
-rw-r--r-- | src/plasma-node.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plasma-node.c b/src/plasma-node.c index c026923..8afdb75 100644 --- a/src/plasma-node.c +++ b/src/plasma-node.c @@ -127,10 +127,10 @@ static const char *plasma_fs = "" " r = max(smoothstep(.25, .8, cos(PI * v + sin(time))), star);" " g = max(smoothstep(.25, .8, cos(1.333 * PI + PI * v + sin(time))), star);" - " gl_FragColor = vec4(max(r, g), g, max(b, g), 1.);" + " gl_FragColor = vec4(max(r, g), g, max(b, g), 1.);" " } else {" " vec3 col = vec3(cos(PI * v + sin(time)), sin(PI * v + cos(time * .33)), cos(PI * v + sin(time * .66)));" - " gl_FragColor = vec4((col * .5 + .5), 1.);" + " gl_FragColor = vec4((col * .5 + .5) * (1. - gloom), alpha);" " }" "}" ""; |