aboutsummaryrefslogtreecommitdiff
path: root/src/shader/display_fragment.glsl
blob: b731ebe09b46cda77ca5d8e97f9ca8ae21174e60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
static const std::string DISPLAY_FRAGMENT_SHADER_CODE = R"(
#version 460

out vec4 FragColor;
in vec2 TexCoords;

uniform sampler2D screen_textures[64];
uniform int screen_textures_size;

void main() {
	for ( int i = 0; i < screen_textures_size; ++i ) {
		FragColor += (1.0 - i*1.0/screen_textures_size) * texture(screen_textures[i], TexCoords);
	}
}
)";