55" return (-5.80630393656902E+02 * x - 8.20261301968494E+01) * x + 2.53829637096771E+02;\n"
56" } else if (x < 0.6267540156841278) {\n"
57" return (((-4.07958939010649E+03 * x + 8.13296992114899E+03) * x - 5.30725139102868E+03) * x + 8.58474724851723E+02) * x + 2.03329669375107E+02;\n"
58" } else if (x < 0.8763731146612115) {\n"
59" return 3.28717357910916E+01 * x + 8.82117255504255E+00;\n"
60" } else {\n"
61" return -2.29186583577707E+02 * x + 2.38482038123159E+02;\n"
62" }\n"
63"}\n"
64"\n"
65"float colormap_green(float x) {\n"
66" if (x < 0.4578040540218353) {\n"
67" return ((4.49001704856054E+02 * x - 5.56217473429394E+02) * x + 2.09812296466262E+01) * x + 2.52987561849833E+02;\n"
68" } else {\n"
69" return ((1.28031059709139E+03 * x - 2.71007279113343E+03) * x + 1.52699334501816E+03) * x - 6.48190622715140E+01;\n"
70" }\n"
71"}\n"
72"\n"
73"float colormap_blue(float x) {\n"
74" if (x < 0.1239372193813324) {\n"
75" return (1.10092779856059E+02 * x - 3.41564374557536E+02) * x + 2.17553885630496E+02;\n"
76" } else if (x < 0.7535201013088226) {\n"
77" return ((((3.86204601547122E+03 * x - 8.79126469446648E+03) * x + 6.80922226393264E+03) * x - 2.24007302003438E+03) * x + 3.51344388740066E+02) * x + 1.56774650431396E+02;\n"
78" } else {\n"
79" return (((((-7.46693234167480E+06 * x + 3.93327773566702E+07) * x - 8.61050867447971E+07) * x + 1.00269040461745E+08) * x - 6.55080846112976E+07) * x + 2.27664953009389E+07) * x - 3.28811994253461E+06;\n"
80" }\n"
81"}\n"
82"\n"
83"vec4 colormap(float x) {\n"
84" float r = clamp(colormap_red(x) / 255.0, 0.0, 1.0);\n"
85" float g = clamp(colormap_green(x) / 255.0, 0.0, 1.0);\n"
86" float b = clamp(colormap_blue(x) / 255.0, 0.0, 1.0);\n"