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