Dynamic change of glshader element

luc.deschenaux luc.deschenaux at freesurf.ch
Sun Nov 16 19:44:35 PST 2014


You could also initialize the uniform variables using text values (using GLSL
syntax) with something like
        g_object_set (G_OBJECT (glshader), "preset", str, NULL)

or change their value using text values with
        g_object_set (G_OBJECT (glshader), "vars", str, NULL)

See
https://bug600195.bugzilla-attachments.gnome.org/attachment.cgi?id=146619

But since this rely on the gst_gl_shader_set_uniform methods (with the
overhead implied for parsing the text string), calling the
gst_gl_shader_set_uniforms methods directly is more efficient for modifying
values dynamically.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Dynamic-change-of-glshader-element-tp4669514p4669526.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list