gKit2 light
tutos
tuto4GL.glsl
Go to the documentation of this file.
1
3
4
#version 330
5
6
#ifdef VERTEX_SHADER
7
in
vec3
position;
8
9
uniform mat4 mvpMatrix;
10
11
void
main( )
12
{
13
gl_Position= mvpMatrix *
vec4
(position, 1);
14
}
15
#endif
16
17
#ifdef FRAGMENT_SHADER
18
uniform
vec3
color;
19
20
out
vec4
fragment_color;
21
22
void
main( )
23
{
24
fragment_color=
vec4
(color, 1);
25
}
26
#endif
vec3
vecteur generique, utilitaire.
Definition:
vec.h:146
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