gKit2 light
Loading...
Searching...
No Matches
mesh_display.glsl
1
2#version 330
3
4#ifdef VERTEX_SHADER
5layout(location= 0) in vec3 position;
6layout(location= 1) in vec3 cluster;
7
8uniform mat4 mvpMatrix;
9out vec3 vertex_cluster;
10
11void main( )
12{
13 gl_Position= mvpMatrix * vec4(position, 1);
14 vertex_cluster= cluster;
15}
16#endif
17
18#ifdef FRAGMENT_SHADER
19
20in vec3 vertex_cluster;
21out vec4 fragment_color;
22
23void main( )
24{
25 fragment_color= vec4(vertex_cluster, 1);
26}
27#endif
vecteur generique, utilitaire.
Definition vec.h:169
vecteur generique 4d, ou 3d homogene, utilitaire.
Definition vec.h:192