aboutsummaryrefslogtreecommitdiff
path: root/pass2.frag
diff options
context:
space:
mode:
Diffstat (limited to 'pass2.frag')
-rw-r--r--pass2.frag6
1 files changed, 3 insertions, 3 deletions
diff --git a/pass2.frag b/pass2.frag
index 78c1f75..9822db0 100644
--- a/pass2.frag
+++ b/pass2.frag
@@ -10,11 +10,11 @@ layout(location = U_LOC_PASS1) uniform sampler2D buf;
layout(location = U_LOC_WINDOW) uniform ivec2 window;
const vec4 color_a = vec4(0.15, 0.50, 0.90, 1.0);
-const vec4 color_b = vec4(0.90, 1.00, 0.90, 1.0);
+const vec4 color_b = vec4(0.85, 1.00, 0.85, 1.0);
void main() {
vec2 uv = gl_FragCoord.xy / window.xy;
- float val = texture(buf, uv)[0];
- color = mix(color_a, color_b, val); // map b/w colors to gradient
+ color = texture(buf, uv);
+ color = mix(color_a, color_b, color[0]); // map b/w colors to gradient
}