Basic fragment shader for glshader
Michael Tyson
michael at tyson.id.au
Sun Sep 14 00:12:20 PDT 2014
Ah! To answer my own question:
The answer is in ext/gl/gstglfiltershader.c - the vertex shader defines v_texcoord (lowercase C), so the most basic fragment shader appears to be:
precision mediump float;
varying vec2 v_texcoord;
uniform sampler2D tex;
void main()
{
gl_FragColor = texture2D( tex, v_texcoord );
}
On 14 Sep 2014, at 2:17 pm, Michael Tyson <michael at tyson.id.au> wrote:
> precision mediump float;
> varying vec2 v_texCoord;
> uniform sampler2D tex;
> void main()
> {
> gl_FragColor = texture2D( tex, v_texCoord );
> }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140914/739337da/attachment.html>
More information about the gstreamer-devel
mailing list