Added ContourPoints and Threshold filters

This commit is contained in:
Edwin Jakobs
2018-10-05 20:57:04 +02:00
parent 862f5aa07d
commit 540113c9ac
3 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#version 330 core
uniform sampler2D tex0;
in vec2 v_texCoord0;
uniform float threshold;
out vec4 o_color;
void main() {
float ref = step(threshold , dot( vec3(1.0/3.0), texture(tex0, v_texCoord0).rgb ));
o_color = vec4(ref, ref, ref, 1.0);
}