24const std::string
tex_vs =
"#version 400 core\n"
25 "layout (location = 0) in vec2 aPos;\n"
29 " gl_Position = vec4(aPos, 0.0, 1.0);\n"
30 " UV = (gl_Position.xy+vec2(1,1))/2.0;\n"
35 "out vec4 FragColor;\n"
36 "uniform sampler2D renderedTexture;\n"
39 " vec4 texColor = texture( renderedTexture, UV) ;\n"
40 " if(texColor.a == 0.0)\n"
42 " FragColor = texColor;\n"
47 "layout (location = 0) in vec2 aPos;\n"
48 "layout (location = 1) in vec4 aCol;\n"
49 "uniform mat4 model;\n"
50 "uniform mat4 view;\n"
51 "uniform mat4 proj;\n"
52 "out vec4 outColor;\n"
55 " gl_Position = proj * view * model * vec4(aPos, 0.0, 1.0);\n"
61 "layout(location = 0) out vec4 color;"
64 " color = outColor;\n"
69 "layout (location = 0) in vec2 aPos;\n"
70 "layout (location = 1) in vec3 aCol;\n"
71 "uniform mat4 model;\n"
72 "uniform mat4 view;\n"
73 "uniform mat4 proj;\n"
74 "out vec3 outColor;\n"
77 " gl_Position = proj * view * model * vec4(aPos, 0.1, 1.0);\n"
81 "out vec4 FragColor;\n"
85 " FragColor = vec4(outColor, 0.6);\n"
90 "layout (location = 0) in vec2 aPos;\n"
91 "uniform mat4 model;\n"
92 "uniform mat4 view;\n"
93 "uniform mat4 proj;\n"
96 " gl_Position = proj * view * model * vec4(aPos, 0.1, 1.0);\n"
100 "out vec4 FragColor;\n"
101 "in vec4 outColor;\n"
104 " FragColor = vec4(0.2, 0.2, 0.2, 0.6);\n"
108 "#version 330 core\n"
109 "layout (location = 0) in vec2 aPos;\n"
110 "uniform mat4 model;\n"
111 "uniform mat4 view;\n"
112 "uniform mat4 proj;\n"
115 " gl_Position = proj * view * model * vec4(aPos, 0.1, 1.0);\n"
118 "out vec4 FragColor;\n"
121 " FragColor = vec4(1.0, 0.0, 0.0, 0.6);\n"
125 "#version 330 core\n"
126 "layout (location = 0) in vec2 aPos;\n"
127 "uniform mat4 model;\n"
128 "uniform mat4 view;\n"
129 "uniform mat4 proj;\n"
132 " gl_Position = proj * view * model * vec4(aPos, 0.2, 1.0);\n"
134const std::string
ui_r_fs =
"#version 330 core\n"
135 "out vec4 FragColor;\n"
138 " FragColor = vec4(0.0, 0.0, 0.0, 0.3);\n"
142 "#version 330 core\n"
143 "layout (location = 0) in vec2 aPos;\n"
144 "uniform mat4 model;\n"
145 "uniform mat4 view;\n"
146 "uniform mat4 proj;\n"
149 " gl_Position = proj * view * model * vec4(aPos, 0.1, 1.0);\n"
151const std::string
ui_c_fs =
"#version 330 core\n"
152 "out vec4 FragColor;\n"
153 "in vec4 outColor;\n"
156 " FragColor = vec4(0.2, 0.2, 0.2, 0.8);\n"
const std::string ui_r_vs
const std::string scatter_fs
const std::string ui_r_fs
const std::string ui_c_fs
const std::string graph_v_outline_vs
const std::string graph_e_fs
const std::string graph_v_outline_fs
const std::string graph_v_fs
const std::string ui_c_vs
const std::string graph_v_vs
const std::string graph_e_vs
const std::string scatter_vs