summaryrefslogtreecommitdiff
path: root/assets/quad_fragment.glsl
blob: 7cf31d4f05b589e48148bc9b07fa3aaf56f76337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 430 core

in vec2 fTexCoord;

out vec4 oColor;

uniform sampler2DMS texture0;
//uniform sampler2D texture0;

void main()
{
	// oColor = texture(texture0, fTexCoord);
	// oColor = texelFetch(texture0, ivec2(gl_FragCoord.xy), 0);
	oColor = texelFetch(texture0, ivec2(gl_FragCoord.xy), gl_SampleID);
}