Matthew Waters
15cb86435d
glshader: fix default external-oes shaders
...
In glsl, #extension directives need to before other non-preprocesser
directives. We were placing the precision qualifier before that. Fix
by moving the #extension to the first line in the shader.
Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/601
2019-05-07 18:43:49 +10:00
Sebastian Dröge
1837fc46af
gl: Add various missing Since: 1.16 markers
...
And add some missing function documentation.
2019-04-23 12:28:26 +00:00
Matthew Waters
55bcdcf01a
gl: actually use the highp specifier
...
675415bf2e
contained a typo that incorrectly
used the mediump specifier instead of highp.
2019-02-28 23:39:21 +11:00
Matthew Waters
675415bf2e
gl: try to use highp precision where supported
...
The use of mediump as a specifier in GLSL shaders will have limited
resolution and when used as texture coordinates may become inaccurate
over texture sizes of 1024.
2019-02-28 17:26:32 +11:00
Matthew Waters
2d62b2910c
gl: take the affine transformation in NDC
...
Provide a function to get the affine matrix in the meta in terms of NDC
coordinates and use as a standard opengl matrix.
Also advertise support for the affine transformation meta in the allocation
query.
2017-12-09 19:32:19 +00:00
Matthew Waters
ef319c7b8f
glshaderstrings: fixup the external-oes fragment shader
...
The wrong sampler type was used
s/sampler2DExternalOES/samplerExternalOES/
2017-12-09 19:32:10 +00:00
Matthew Waters
b1ac029b87
glslstage: expose the default shader strings as public
...
Add some other simple strings for external-oes textures or transforming
the texture coordinates with a transformation matrix
2017-12-09 19:32:10 +00:00