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