fix cedric's nv12 shader! it worked by luck only. tex_y -> tex_c in

vert shdr



SVN revision: 63918
This commit is contained in:
Carsten Haitzler 2011-10-08 03:04:16 +00:00
parent 88fdfeff4c
commit 4e4e7a03a4
4 changed files with 8 additions and 8 deletions

View File

@ -9,10 +9,10 @@
"attribute vec4 color;\n" "attribute vec4 color;\n"
"attribute vec2 tex_coord, tex_coord2;\n" "attribute vec2 tex_coord, tex_coord2;\n"
"uniform mat4 mvp;\n" "uniform mat4 mvp;\n"
"varying vec2 tex_y, tex_cuv;\n" "varying vec2 tex_c, tex_cuv;\n"
"void main()\n" "void main()\n"
"{\n" "{\n"
" gl_Position = mvp * vertex;\n" " gl_Position = mvp * vertex;\n"
" tex_y = tex_coord;\n" " tex_c = tex_coord;\n"
" tex_cuv = tex_coord2 * 0.5;\n" " tex_cuv = tex_coord2 * 0.5;\n"
"}\n" "}\n"

View File

@ -9,10 +9,10 @@ attribute vec4 vertex;
attribute vec4 color; attribute vec4 color;
attribute vec2 tex_coord, tex_coord2; attribute vec2 tex_coord, tex_coord2;
uniform mat4 mvp; uniform mat4 mvp;
varying vec2 tex_y, tex_cuv; varying vec2 tex_c, tex_cuv;
void main() void main()
{ {
gl_Position = mvp * vertex; gl_Position = mvp * vertex;
tex_y = tex_coord; tex_c = tex_coord;
tex_cuv = tex_coord2 * 0.5; tex_cuv = tex_coord2 * 0.5;
} }

View File

@ -10,11 +10,11 @@
"attribute vec2 tex_coord, tex_coord2;\n" "attribute vec2 tex_coord, tex_coord2;\n"
"uniform mat4 mvp;\n" "uniform mat4 mvp;\n"
"varying vec4 col;\n" "varying vec4 col;\n"
"varying vec2 tex_y, tex_cuv;\n" "varying vec2 tex_c, tex_cuv;\n"
"void main()\n" "void main()\n"
"{\n" "{\n"
" gl_Position = mvp * vertex;\n" " gl_Position = mvp * vertex;\n"
" col = color;\n" " col = color;\n"
" tex_y = tex_coord;\n" " tex_c = tex_coord;\n"
" tex_cuv = tex_coord2 * 0.5;\n" " tex_cuv = tex_coord2 * 0.5;\n"
"}\n" "}\n"

View File

@ -10,11 +10,11 @@ attribute vec4 color;
attribute vec2 tex_coord, tex_coord2; attribute vec2 tex_coord, tex_coord2;
uniform mat4 mvp; uniform mat4 mvp;
varying vec4 col; varying vec4 col;
varying vec2 tex_y, tex_cuv; varying vec2 tex_c, tex_cuv;
void main() void main()
{ {
gl_Position = mvp * vertex; gl_Position = mvp * vertex;
col = color; col = color;
tex_y = tex_coord; tex_c = tex_coord;
tex_cuv = tex_coord2 * 0.5; tex_cuv = tex_coord2 * 0.5;
} }