diff options
Diffstat (limited to 'pass2.frag')
-rw-r--r-- | pass2.frag | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 } |