]> git.tdb.fi Git - libs/gl.git/blob - shaderlib/postprocess.glsl
Export texture sampling settings as sampler objects
[libs/gl.git] / shaderlib / postprocess.glsl
1 uniform sampler2D source;
2
3 #pragma MSP stage(vertex)
4 layout(location=0) in vec4 vertex;
5 void main()
6 {
7         gl_Position = vertex;
8         out vec2 texcoord = vertex.xy*0.5+0.5;
9         passthrough;
10 }
11
12 #pragma MSP stage(fragment)
13 layout(location=0) out vec4 frag_color;