declare const _default: "#version 300 es\n#define SHADER_NAME piechart-fragment-shader\n\nflat in int pie_index_;\n\nout vec4 fragColor;\n\nin vec4 vColor;\n\nvoid main(void) {\n\n  //Picking pass.\n  if (picking.isActive > 0.5) {\n     // Express triangle index in 255 system.\n     float r = 0.0;\n     float g = 0.0;\n     float b = 0.0;\n \n     int idx = pie_index_;\n \n     if (idx >= (256 * 256) - 1) {\n        r = floor(float(idx) / (256.0 * 256.0));\n        idx -= int(r * (256.0 * 256.0));\n     }\n \n     if (idx >= 256 - 1) {\n        g = floor(float(idx) / 256.0);\n        idx -= int(g * 256.0);\n     }\n \n     b = float(idx);\n \n     fragColor = vec4(r / 255.0, g / 255.0, b / 255.0,  layer.opacity);\n     return;\n  }\n\n  fragColor = vColor;\n}\n";
export default _default;
