aboutsummaryrefslogtreecommitdiff
path: root/src/shader/display_fragment.glsl
blob: 03986a0742fff9170a1f5639a1638526efb8f65c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
static const std::string DISPLAY_FRAGMENT_SHADER_CODE = R"(
#version 460

out vec4 FragColor;
in vec2 TexCoords;

uniform sampler2D screen_texture_0;
uniform sampler2D screen_texture_1;
uniform sampler2D screen_texture_2;
uniform sampler2D screen_texture_3;
uniform sampler2D screen_texture_4;
uniform sampler2D screen_texture_5;
uniform sampler2D screen_texture_6;
uniform sampler2D screen_texture_7;
uniform sampler2D screen_texture_8;
uniform sampler2D screen_texture_9;

void main() {
	FragColor =       texture(screen_texture_0, TexCoords)
	          + 0.9 * texture(screen_texture_1, TexCoords)
	          + 0.8 * texture(screen_texture_2, TexCoords)
	          + 0.7 * texture(screen_texture_3, TexCoords)
	          + 0.6 * texture(screen_texture_4, TexCoords)
	          + 0.5 * texture(screen_texture_5, TexCoords)
	          + 0.4 * texture(screen_texture_6, TexCoords)
	          + 0.3 * texture(screen_texture_7, TexCoords)
	          + 0.2 * texture(screen_texture_8, TexCoords)
	          + 0.1 * texture(screen_texture_9, TexCoords);
}
)";