=
"#version 130\n"
"attribute vec3 position;\n"
"attribute vec2 textureCoords;\n"
"varying vec2 textCoords;\n"
"varying vec2 occuTextureCoords[10];\n"
"uniform vec2 elementPosition;\n"
"uniform vec2 elementScale;\n"
"uniform float width;\n"
"uniform float height;\n"
"uniform int vscan;\n"
"void main(void)\n"
"{\n"
" gl_Position = vec4(position * vec3(elementScale, 1.0) + vec3(elementPosition, 0.0), 1.0);\n"
" textCoords = textureCoords;\n"
" float pixelsize = 1.0 / width;\n"
" float shift = 0.0;\n"
" for (int i = 0; i < 10; i++)\n"
" {\n"
" if(vscan > 0)\n"
" {\n"
" occuTextureCoords[i] = textureCoords + vec2(0.0, shift);\n"
" pixelsize = 2.0 / height;\n"
" } else {\n"
" occuTextureCoords[i] = textureCoords - vec2(shift, 0.0);\n"
" pixelsize = 2.0 / width;\n"
" }\n"
" shift += pixelsize;\n"
" }\n"
"}"