declare const _default: "#version 300 es\n#define SHADER_NAME axes2d-label-fragment-shader\n\nout vec4 fragColor;\n\nuniform sampler2D fontTexture;\n\nin vec2 _vTexCoord;\n\nvoid main(void) {\n  vec4 color = texture(fontTexture, _vTexCoord);\n  \n  float x = 1.0 - (color.r + color.g + color.b) / 3.0;  // intensity of text color\n  x = smoothstep(0.0, 0.2, x);  \n\n  float text_r = axes.uAxisColor.r;\n  float text_g = axes.uAxisColor.g;\n  float text_b = axes.uAxisColor.b;\n\n  float bg_r = axes.uBackGroundColor.r;\n  float bg_g = axes.uBackGroundColor.g;\n  float bg_b = axes.uBackGroundColor.b;\n  \n  float r = x * text_r + (1.0 - x) * bg_r;\n  float g = x * text_g + (1.0 - x) * bg_g;\n  float b = x * text_b + (1.0 - x) * bg_b;\n\n  fragColor = vec4(r, g, b, 1.0);\n}\n";
export default _default;
