gKit2 light
Toggle main menu visibility
Loading...
Searching...
No Matches
gkit2_tutos
M2
fragment.glsl
Go to the documentation of this file.
1
2
3
#version 430
4
5
#ifdef VERTEX_SHADER
6
uniform mat4 mvpMatrix;
7
8
layout(location= 0) in
vec3
position;
9
layout(location= 1) in
vec3
color;
10
11
out
vec3
vertex_color;
12
void
main( )
13
{
14
gl_Position= mvpMatrix *
vec4
(position, 1);
15
vertex_color= color;
16
}
17
#endif
18
19
20
#ifdef FRAGMENT_SHADER
21
22
in
vec3
vertex_color;
23
24
out
vec4
fragment_color;
25
void
main( )
26
{
27
fragment_color=
vec4
(vertex_color, 1);
28
}
29
#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