diff --git a/shaders/StylishShaders/TextFrag.glsl b/shaders/StylishShaders/TextFrag.glsl index 2a1b424..e1bd0e2 100644 --- a/shaders/StylishShaders/TextFrag.glsl +++ b/shaders/StylishShaders/TextFrag.glsl @@ -11,8 +11,6 @@ uniform sampler2D texture1; void main(){ vec3 black = vec3(0.0f, 0.0f , 0.0f); vec4 tex = texture(texture1, texCoord); - if (tex.xyz == black){ - tex.a = 0.0f; - } + tex.a = (tex.x + tex.y + tex.z) / 3.0f; FragColor = tex; }