gKit2 light
tutos
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
vec4
vecteur generique 4d, ou 3d homogene, utilitaire.
Definition:
vec.h:168
Generated on Fri Nov 8 2024 12:11:33 for gKit2 light by
1.9.1