gKit2 light
pipeline_compute.glsl
Go to the documentation of this file.
1 
3 
4 #version 430
5 
6 #ifdef VERTEX_SHADER
7 
8 layout(std430, binding= 0) readonly buffer transformedData
9 {
10  vec4 transformed[];
11 };
12 
13 void main( )
14 {
15  gl_Position= transformed[gl_VertexID];
16 }
17 #endif
18 
19 #ifdef FRAGMENT_SHADER
20 
21 out vec4 fragment_color;
22 
23 void main( )
24 {
25  fragment_color= vec4(1, 1, 0, 1);
26 }
27 #endif
28 
vecteur generique 4d, ou 3d homogene, utilitaire.
Definition: vec.h:168