Debian Codegraph @

shaders/atom.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 layout (location=4) in vec4 L4;
7 layout (location=5) in vec4 L5;
8
9 /*#version 440
10 //5 components 01234567
11 layout (location=0, component = 0) in vec3 Center;
12 layout (location=0, component = 3) in float AN_f;
13 layout (location=1, component = 0) in vec3 Corner;
14 layout (location=1, component = 3) in float CI_f;
15 layout (location=2) in vec4 ADPRQ;
16 layout (location=3, component = 0) in vec3 ADP_eigen_values;
17 layout (location=3, component = 3) in float Style_f;
18 layout (location=4, component = 0) in float PH;
19 layout (location=4, component = 1) in float SG_f;
20 layout (location=4, component = 2) in float part_f;
21 layout (location=4, component = 3) in float MI_f;
22 */
23 out vec3 center;
24 out vec3 vert;
25 out float an;
26 out float ci;
27 out vec4 rotarr;
28 out vec3 eigenvalues;
29 out float style;
30 out float peakheight;
31 out float sg;
32 out float part;
33 out float mi;
34 out float idx;
35 out float auidx;
36 out float resinr;
37
38 uniform vec3 origin = vec3(0);
39 /*
40 // 440
41 void main(void){
42 center = Center;
43 an = int(AN_f);
44 vert = Corner;
45 gl_Position = vec4(Corner, 1.0);
46 ci = CI_f;
47 rotarr = ADPRQ;
48 eigenvalues = ADP_eigen_values;
49 style = Style_f;
50 peakheight = PH;
51 sg = SG_f;
52 part = part_f;
53 mi = MI_f;
54 }
55 */
56 // 410
57 void main(void){
58 center = L0.xyz - origin;
59 an = L0.w;
60 vert = L1.xyz;
61 gl_Position = vec4(vert, 1.0);
62 ci = L1.w;
63 rotarr = L2;
64 eigenvalues = L3.xyz;
65 style = L3.w;
66 peakheight = L4.x;
67 sg = L4.y;
68 part = L4.z;
69 mi = L4.w;
70 idx = L5.x;
71 auidx = L5.y;
72 resinr = L5.z;
73 //= L5.w;
74 }