[449/906] sobel: drop unused single pass sobel shader

Drop unused sobel shader, if anyone still needs it, git log is your
friend.
This commit is contained in:
Filippo Argiolas 2010-04-29 14:21:28 +02:00 committed by Matthew Waters
parent c888188422
commit 3d14e9684d
2 changed files with 0 additions and 36 deletions

View file

@ -273,41 +273,6 @@ const gchar *luma_threshold_fragment_source =
" gl_FragColor = vec4 (vec3 (smoothstep (0.30, 0.50, luma)), color.a);"
"}";
const gchar *sobel_fragment_source =
"#extension GL_ARB_texture_rectangle : enable\n"
"uniform sampler2DRect tex;"
"uniform float hkern[9];"
"uniform float vkern[9];"
"uniform bool invert;"
"void main () {"
" vec2 offset[9];"
" offset[0] = vec2(-1.0,-1.0);"
" offset[1] = vec2( 0.0,-1.0);"
" offset[2] = vec2( 1.0,-1.0);"
" offset[3] = vec2(-1.0, 0.0);"
" offset[4] = vec2( 0.0, 0.0);"
" offset[5] = vec2( 1.0, 0.0);"
" offset[6] = vec2(-1.0, 1.0);"
" offset[7] = vec2( 0.0, 1.0);"
" offset[8] = vec2( 1.0, 1.0);"
" vec2 texturecoord = gl_TexCoord[0].st;"
" int i;"
" float luma;"
" float gx = 0.0;"
" float gy = 0.0 ;"
" for (i = 0; i < 9; i++) { "
" if(hkern[i] != 0.0 || vkern[i] != 0.0) {"
" vec4 neighbor = texture2DRect(tex, texturecoord + vec2(offset[i])); "
" luma = dot(neighbor, vec4(0.2125, 0.7154, 0.0721, neighbor.a));"
" gx += luma * hkern[i]; "
" gy += luma * vkern[i]; "
" }"
" }"
" float g = sqrt(gx*gx + gy*gy);"
" if (invert) g = 1.0 - g;"
" gl_FragColor = vec4(vec3(g), 1.0);"
"}";
const gchar *sep_sobel_length_fragment_source =
"#extension GL_ARB_texture_rectangle : enable\n"
"uniform sampler2DRect tex;"

View file

@ -32,7 +32,6 @@ extern const gchar *twirl_fragment_source;
extern const gchar *bulge_fragment_source;
extern const gchar *square_fragment_source;
extern const gchar *luma_threshold_fragment_source;
extern const gchar *sobel_fragment_source;
extern const gchar *sep_sobel_length_fragment_source;
extern const gchar *desaturate_fragment_source;
extern const gchar *sep_sobel_hconv3_fragment_source;