Debian Codegraph @

shaders/voro.vert

raw
1 #version 330
2 layout (location=0) in vec4 L0;
3 layout (location=1) in vec4 L1;
4 layout (location=2) in vec4 L2;
5 layout (location=3) in vec4 L3;
6
7 out vec3 mid;
8 out vec3 nor;
9 out vec3 vert0;
10 out vec3 vert1;
11 out float an;
12 out float intra;
13 out vec3 col;
14
15 uniform vec3 origin = vec3(0);
16
17 void main(void){
18 mid = L0.xyz - origin;
19 float blue = 0.0;
20 float red = 0.0;
21 float green = 0.0;
22 blue = fract(L0.w);
23 an = L0.w - blue;
24 nor = L1.xyz;
25 intra = L1.w;
26 vert0 = L2.xyz - origin;
27 vert1 = L3.xyz - origin;
28 red = L2.w;
29 green = L3.w;
30 col = vec3(red, green, blue);
31 //= L5.w;
32 }