[106/906] up sobel algo

git-svn-id: svn://svn.wobow.com/GStreamer_playground/gst-plugins-gl@522 93df14bb-0f41-7a43-8087-d3e2a2f0e464
This commit is contained in:
Julien Isorce 2008-06-16 23:12:48 +00:00 committed by Matthew Waters
parent 646aaf4cd3
commit 6fe0a756a1

View file

@ -111,7 +111,7 @@ gst_gl_filter_edge_init (GstGLFilterEdge* filter,
" gH += gH + filterH[i] * gray_i;\n" " gH += gH + filterH[i] * gray_i;\n"
" gV += gV + filterV[i] * gray_i;\n" " gV += gV + filterV[i] * gray_i;\n"
" }\n" " }\n"
" float g = sqrt(gH * gH + gV * gV) / 8.0;\n" " float g = sqrt(gH * gH + gV * gV) / 256.0;\n"
" gl_FragColor = vec4(g, g, g, 1.0);\n" " gl_FragColor = vec4(g, g, g, 1.0);\n"
"}\n"; "}\n";
} }