1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-02 12:33:52 +00:00

Remove font shader discard;

This commit is contained in:
bjorn 2017-07-31 02:43:04 -07:00
parent 416f6f7216
commit 94355db2b5

View file

@ -75,7 +75,6 @@ const char* lovrFontFragmentShader = ""
" float sdf = median(col.r, col.g, col.b); \n" " float sdf = median(col.r, col.g, col.b); \n"
" float w = fwidth(sdf); \n" " float w = fwidth(sdf); \n"
" float alpha = smoothstep(.5 - w, .5 + w, sdf); \n" " float alpha = smoothstep(.5 - w, .5 + w, sdf); \n"
" if (alpha < .001) { discard; } \n"
" return vec4(graphicsColor.rgb, graphicsColor.a * alpha); \n" " return vec4(graphicsColor.rgb, graphicsColor.a * alpha); \n"
"}"; "}";