This commit is contained in:
Thomas Wilshaw
2022-05-04 20:04:43 +01:00
parent b8834b6257
commit 2827758fae
3 changed files with 7 additions and 16 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ vec4 CIExyz_to_Lab(vec4 CIE) {
}
float colorclose(vec4 col, vec4 key, float tola,float tolb) {
/*decides if a color is close to the specified hue*/
// Decides if a color is close to the specified hue
float temp = sqrt(((key.g-col.g)*(key.g-col.g))+((key.b-col.b)*(key.b-col.b)));
if (temp < tola) {return (0.0);}
if (temp < tolb) {return ((temp-tola)/(tolb-tola));}
-13
View File
@@ -1,13 +0,0 @@
uniform sampler2D tex_in;
in vec2 ove_texcoord;
out vec4 frag_color;
%1
void main() {
vec4 col = texture2D(tex_in, ove_texcoord);
col = %2(col);
frag_color = col;
}