Using vertex shader files

Hamdi Rakkez hamdi.rakez.selotec at gmail.com
Fri Aug 21 01:57:54 PDT 2015


OKay but why we have this in the gstshader.c :

static const gchar *simple_vertex_shader_str_gles2 =
>       "attribute vec4 a_position;\n"
>       "attribute vec2 a_texcoord;\n"
>       "varying vec2 v_texcoord;\n"
>       "void main()\n"
>       "{\n"
>       "   gl_Position = a_position;\n"
>       "   v_texcoord = a_texcoord;\n"
>       "}\n";


   switch (prop_id) {
>     case PROP_VERTEX_SRC:
>       gst_gl_shader_set_vertex_source (shader, g_value_get_string (value));
>       break;
>     case PROP_FRAGMENT_SRC:
>       gst_gl_shader_set_fragment_source (shader, g_value_get_string
> (value));
>       break;


On Fri, Aug 21, 2015 at 5:00 AM, Matthew Waters <ystreet00 at gmail.com> wrote:

> On 20/08/15 19:42, Hamdi Rakkez wrote:
>
> Hi list,
>
> Is it possible to use vertex shader files with gstreamer glshader ?
>
>
> No, see my previous email for some more details.
>
> Thnaks.
>
> Best,
> Hamdi
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150821/7a245814/attachment.html>


More information about the gstreamer-devel mailing list