55" return -1.36007661451525E+01 * x + 2.54876081825334E+02;\n"
56" } else {\n"
57" return ((9.11043267377652E+02 * x - 2.27422817830303E+03) * x + 1.47691217772832E+03) * x - 3.80041369120933E+01;\n"
58" }\n"
59"}\n"
60"\n"
61"float colormap_green(float x) {\n"
62" return ((((-2.12978937384858E+03 * x + 5.05211767883971E+03) * x - 3.95843947196006E+03) * x + 9.49632208843715E+02) * x - 2.70366761763812E+02) * x + 2.48595803511253E+02;\n"
63"}\n"
64"\n"
65"float colormap_blue(float x) {\n"
66" if (x < 0.2484821379184723) {\n"
67" return ((1.12923860577866E+02 * x - 2.02431339810602E+02) * x - 1.60306874714734E+02) * x + 2.42581612831587E+02;\n"
68" } else if (x < 0.5019654333591461) {\n"
69" return (-2.24073120483401E+02 * x + 4.46032892337713E+01) * x + 1.94733826112356E+02;\n"
70" } else if (x < 0.7505462467670441) {\n"
71" return (-4.08932859712077E+02 * x + 3.70448937862306E+02) * x + 7.77495522761299E+01;\n"
72" } else {\n"
73" return (-1.99803137524475E+02 * x + 2.71497008797383E+02) * x + 3.42106616941255E+01;\n"
74" }\n"
75"}\n"
76"\n"
77"vec4 colormap(float x) {\n"
78" float r = clamp(colormap_red(x) / 255.0, 0.0, 1.0);\n"
79" float g = clamp(colormap_green(x) / 255.0, 0.0, 1.0);\n"
80" float b = clamp(colormap_blue(x) / 255.0, 0.0, 1.0);\n"