gKit2 light

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

tuto4GL.glsl
1
2 #version 330
3
4 #ifdef VERTEX_SHADER
5 in vec3 position;
6
7 uniform mat4 mvpMatrix;
8
9 void main( )
10 {
11 gl_Position= mvpMatrix * vec4(position, 1);
12 }
13 #endif
14
15 #ifdef FRAGMENT_SHADER
16 uniform vec3 color;
17
18 out vec4 fragment_color;
19
20 void main( )
21 {
22 fragment_color= vec4(color, 1);
23 }
24 #endif
vec3
vecteur generique, utilitaire.
Definition: vec.h:104
vec4
vecteur generique 4d, ou 3d homogene, utilitaire.
Definition: vec.h:121