much improve
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / routeui.h
1 #ifndef SHADER_routeui_H
2 #define SHADER_routeui_H
3 static void shader_routeui_link(void);
4 static void shader_routeui_register(void);
5 static struct vg_shader _shader_routeui = {
6 .name = "routeui",
7 .link = shader_routeui_link,
8 .vs =
9 {
10 .orig_file = "../../shaders/routeui.vs",
11 .static_src =
12 "layout (location=0) in vec2 a_co;\n"
13 "\n"
14 "void main()\n"
15 "{\n"
16 " gl_Position = vec4(a_co*0.01,0.0,1.0);\n"
17 "}\n"
18 ""},
19 .fs =
20 {
21 .orig_file = "../../shaders/routeui.fs",
22 .static_src =
23 "out vec4 FragColor;\n"
24 "\n"
25 "void main()\n"
26 "{\n"
27 " FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n"
28 "}\n"
29 ""},
30 };
31
32 static void shader_routeui_register(void){
33 vg_shader_register( &_shader_routeui );
34 }
35 static void shader_routeui_use(void){ glUseProgram(_shader_routeui.id); }
36 static void shader_routeui_link(void){
37 }
38 #endif /* SHADER_routeui_H */