Keeping my commit count high!
Previous GLSL code had error, the if() statement had to be negated.
This commit is contained in:
parent
eae651db3a
commit
753fe9f0b9
@ -92,7 +92,7 @@ static const char *g_fragShaderText = ""
|
||||
"void main()\n"
|
||||
"{\n"
|
||||
" vec4 col = texture2D(tex1, gl_TexCoord[0].st);\n"
|
||||
" if (predivide == false || col[3] <= 0.0 || col[3] >= 1.0) {\n"
|
||||
" if (predivide && col[3] > 0.0 && col[3] < 1.0) {\n"
|
||||
" float inv_alpha = 1.0 / col[3];\n"
|
||||
" col[0] *= inv_alpha;\n"
|
||||
" col[1] *= inv_alpha;\n"
|
||||
|
Loading…
Reference in New Issue
Block a user