54" float v = ((((-2.83671754639782E+03 * x + 6.51753994553536E+03) * x - 5.00110948171466E+03) * x + 1.30359712298773E+03) * x - 2.89958300810074E+02) * x + 2.48458039402758E+02;\n"
55" if (v < 8.0) {\n"
56" return 8.0;\n"
57" } else {\n"
58" return v;\n"
59" }\n"
60"}\n"
61"\n"
62"float colormap_green(float x) {\n"
63" return (((((-1.36304822155833E+03 * x + 4.37691418182849E+03) * x - 5.01802019417285E+03) * x + 2.39971481269598E+03) * x - 5.65401491984724E+02) * x - 1.48189675724133E+01) * x + 2.50507618187374E+02;\n"
64"}\n"
65"\n"
66"float colormap_blue(float x) {\n"
67" if (x < 0.3756393599187693) {\n"
68" return (9.62948273917718E+01 * x - 1.96136874142438E+02) * x + 2.41033490809633E+02;\n"
69" } else if (x < 0.6215448666633865) {\n"
70" return 1.21184043778803E+02 * x + 1.35422939068100E+02;\n"
71" } else if (x < 0.8830064316178203) {\n"
72" return -1.53052165744713E+02 * x + 3.05873047350666E+02;\n"
73" } else {\n"
74" return -3.49468965517114E+02 * x + 4.79310344827486E+02;\n"
75" }\n"
76"}\n"
77"\n"
78"vec4 colormap(float x) {\n"
79" float r = clamp(colormap_red(x) / 255.0, 0.0, 1.0);\n"
80" float g = clamp(colormap_green(x) / 255.0, 0.0, 1.0);\n"
81" float b = clamp(colormap_blue(x) / 255.0, 0.0, 1.0);\n"