Commit af011751 authored by Laurent Aimar's avatar Laurent Aimar

Simplified and fixed RGB fragment shader (opengl).

parent 7373aed3
......@@ -302,11 +302,10 @@ static void BuildRGBFragmentShader(vout_display_opengl_t *vgl,
const char *code =
"#version 120\n"
"uniform sampler2D Texture[3];"
"uniform vec4 FillColor;"
"varying vec4 TexCoord0,TexCoord1,TexCoord2;"
"void main()"
"{ "
" gl_FragColor = texture2D(Texture[0], TexCoord0.st)*FillColor;"
" gl_FragColor = texture2D(Texture[0], TexCoord0.st);"
"}";
*shader = vgl->CreateShader(GL_FRAGMENT_SHADER);
vgl->ShaderSource(*shader, 1, &code, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment