#version 410 core
uniform float uRain;
in float vV;
out vec4 FragColor;
void main() {
    // Streaks fade toward the tail and cool slightly, so rain reads as motion
    // instead of solid falling bars.
    float a = uRain * mix(0.28, 0.75, vV);
    vec3 col = mix(vec3(0.62, 0.70, 0.88), vec3(0.78, 0.84, 0.96), vV);
    FragColor = vec4(col, a);
}
