From 0986f7bae724fe828692fbfb6d7af9a1950028e2 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 26 Dec 2022 16:19:33 -0800 Subject: 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. --- src/plasma-node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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);" " }" "}" ""; -- cgit v1.2.3