Debian Codegraph @

tests/python_build/fixtures/glsl/vertex_fragment.glsl

raw
1 #[versions]
2
3 lines = "#define MODE_LINES";
4
5 #[vertex]
6
7 #version 450
8
9 #VERSION_DEFINES
10
11 layout(location = 0) out vec3 uv_interp;
12
13 void main() {
14 #ifdef MODE_LINES
15 uv_interp = vec3(0, 0, 1);
16 #endif
17 }
18
19 #[fragment]
20
21 #version 450
22
23 #VERSION_DEFINES
24
25 #include "_included.glsl"
26
27 layout(location = 0) out vec4 dst_color;
28
29 void main() {
30 dst_color = vec4(1, 1, 0, 0);
31 }