#version 330 core

in vec2 texCoords;

uniform sampler2D colorTex;
uniform sampler2D edgeTex;

out vec4 color;

void main() {

	vec3 scene = texture(colorTex, texCoords).rgb;
	vec3 edge = texture(edgeTex, texCoords).rgb;

	color = vec4((scene - edge), 1.0);
}