summaryrefslogtreecommitdiff
path: root/examples/spheres/shaders/fade.frag
blob: 71b02f208cf6646423fcd2a618b3f668f8809c18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#version 450
#extension GL_GOOGLE_include_directive : require
// Blended over the sky (premultiplied), it moves every pixel `amount` of
// the way to the background: what was drawn before fades, a long exposure.
layout(location = 0) out vec4 out_color;

#include "Fade.glsl"

void main() {
    out_color = vec4(u.background * u.amount, u.amount);
}