X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=shaderlib%2Fpostprocess.glsl;h=c868bd11f6e841eb4ad9451b735daebbf15b3fd5;hp=cb65794793e5a5190474c0273f1a6da45aab5597;hb=9d1fa012a23693768bbe287371e97751c03acc50;hpb=e55f79ccb21e8c1be3d86f127e3ec1583e58ce92 diff --git a/shaderlib/postprocess.glsl b/shaderlib/postprocess.glsl index cb657947..c868bd11 100644 --- a/shaderlib/postprocess.glsl +++ b/shaderlib/postprocess.glsl @@ -1,12 +1,13 @@ uniform sampler2D source; -////// vertex -in vec4 vertex; +#pragma MSP stage(vertex) +layout(location=0) in vec4 vertex; void main() { gl_Position = vertex; out vec2 texcoord = vertex.xy*0.5+0.5; + passthrough; } -////// fragment -out vec4 frag_color; +#pragma MSP stage(fragment) +layout(location=0) out vec4 frag_color;