mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
[439/906] sobel: get rid of #version 120 dependent array constructors
This commit is contained in:
parent
f8871ff33a
commit
002f069962
1 changed files with 11 additions and 4 deletions
|
@ -280,9 +280,16 @@ const gchar *sobel_fragment_source =
|
|||
"uniform float vkern[9];"
|
||||
"uniform bool invert;"
|
||||
"void main () {"
|
||||
" vec2 offset[9] = vec2[9] ( vec2(-1.0,-1.0), vec2( 0.0,-1.0), vec2( 1.0,-1.0),"
|
||||
" vec2(-1.0, 0.0), vec2( 0.0, 0.0), vec2( 1.0, 0.0),"
|
||||
" vec2(-1.0, 1.0), vec2( 0.0, 1.0), vec2( 1.0, 1.0) );"
|
||||
" vec2 offset[9];"
|
||||
" offset[0] = vec2(-1.0,-1.0);"
|
||||
" offset[1] = vec2( 0.0,-1.0);"
|
||||
" offset[2] = vec2( 1.0,-1.0);"
|
||||
" offset[3] = vec2(-1.0, 0.0);"
|
||||
" offset[4] = vec2( 0.0, 0.0);"
|
||||
" offset[5] = vec2( 1.0, 0.0);"
|
||||
" offset[6] = vec2(-1.0, 1.0);"
|
||||
" offset[7] = vec2( 0.0, 1.0);"
|
||||
" offset[8] = vec2( 1.0, 1.0);"
|
||||
" vec2 texturecoord = gl_TexCoord[0].st;"
|
||||
" int i;"
|
||||
" float luma;"
|
||||
|
@ -308,7 +315,7 @@ const gchar *hconv9_fragment_source =
|
|||
"uniform sampler2DRect tex;"
|
||||
"uniform float kernel[9];"
|
||||
"void main () {"
|
||||
" vec2 texturecoord[10];"
|
||||
" vec2 texturecoord[9];"
|
||||
" float s = gl_TexCoord[0].s;"
|
||||
" float t = gl_TexCoord[0].t;"
|
||||
" texturecoord[0] = vec2(s-4.0, t);"
|
||||
|
|
Loading…
Reference in a new issue