in vec2 Texcoord;

OUTPUT

uniform sampler2D tex;
uniform bool swap;
uniform bool swizzle;

void main()
{
	vec4 color = texture(tex, Texcoord);
	if (swap) color.rgba = color.abgr;
	if (swizzle) color.rgba = color.bgra;
	outColor = vec4(color.rgb, 1.0);
}
