Clear alpha channel in fragment shader (fixes #51)

This commit is contained in:
Jeffrey Pfau 2014-04-25 23:48:51 -07:00
parent 084f0f037e
commit 6e32ade69e
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ static const char* _fragmentShader =
"uniform sampler2D tex;\n"
"void main() {\n"
" gl_FragColor = texture2D(tex, texCoord);\n"
" vec4 color = texture2D(tex, texCoord);\n"
" color.a = 1.;\n"
" gl_FragColor = color;"
"}";
static const GLfloat _vertices[] = {