Go to the documentation of this file.
6 #include "../../colormap.h"
22 #define float local_real_t
23 #include "../../../../shaders/glsl/IDL_Beach.frag"
44 return std::string(
"Beach");
50 return std::string(
"IDL");
57 "float colormap_red(float x) {\n"
59 " return 1.07069284759359E+03 * x - 3.92901626559718E+02; // R1\n"
60 " } else if (x < (4.62452380952399E+02 - 3.16199999999948E+02) / "
61 "(1.05778571428574E+03 - 8.03199999999881E+02)) { // 0.57447206479\n"
62 " return 1.05778571428574E+03 * x - 4.62452380952399E+02; // R2\n"
63 " } else if (x < (2.16218045113087E+01 + 3.16199999999948E+02) / "
64 "(8.03199999999881E+02 - 2.93462406015021E+02)) { // 0.66273668746\n"
65 " return 8.03199999999881E+02 * x - 3.16199999999948E+02; // R3\n"
66 " } else if (x < 0.7332708626326772) {\n"
67 " return 2.93462406015021E+02 * x + 2.16218045113087E+01; // R4\n"
73 "float colormap_green(float x) {\n"
74 " if (x < (2.51230508474576E+02 - 2.71026069518750E+01) / "
75 "(4.27421457219241E+02 + 5.35095032144939E+02)) { // 0.23285616817\n"
76 " return -5.35095032144939E+02 * x + 2.51230508474576E+02; // G1\n"
77 " } else if (x < (6.91824598930488E+02 - 2.71026069518750E+01) / "
78 "(4.27421457219241E+02 + 1.39121879297175E+03)) { // 0.36550493804\n"
79 " return 4.27421457219241E+02 * x + 2.71026069518750E+01; // G2\n"
80 " } else if (x < (6.91824598930488E+02 + 5.16725562656262E+02) / "
81 "(1.02304642956372E+03 + 1.39121879297175E+03)) { // 0.500587156\n"
82 " return -1.39121879297175E+03 * x + 6.91824598930488E+02; // G3\n"
83 " } else if (x < 0.7332708626326772) {\n"
84 " return 1.02304642956372E+03 * x - 5.16725562656262E+02; // G4\n"
90 "float colormap_blue(float x) {\n"
91 " if (x < 0.3584754040051419) {\n"
92 " return 1.07130443548384E+03 * x - 2.48036290322570E+02; // B1\n"
93 " } else if (x < 123.0 / 251.0) {\n"
95 " } else if (x < 0.7332708626326772) {\n"
96 " return -1.01758796992489E+03 * x + 5.87035338345905E+02; // B2\n"
98 " return 8.98509790209691E+02 * x - 6.58851048950966E+02; // B3\n"
103 "// => [x=0.5744720647924222]\n"
106 "// => [x=0.3584754040051419]\n"
109 "// => [x=0.7332708626326772]\n"
111 "vec4 colormap(float x) {\n"
112 " float r = clamp(colormap_red(x) / 255.0, 0.0, 1.0);\n"
113 " float g = clamp(colormap_green(x) / 255.0, 0.0, 1.0);\n"
114 " float b = clamp(colormap_blue(x) / 255.0, 0.0, 1.0);\n"
115 " return vec4(r, g, b, 1.0);\n"
std::string getCategory() const override
std::string getSource() const override
Color getColor(double x) const override
uint32_t Color
RGBA color.
This file was automatically created with "create_c++_header.sh".
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::string getTitle() const override