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