7 layout(location= 0) in
vec3 position;
8 layout(location= 1) in
vec2 texcoord;
10 uniform mat4 mvpMatrix;
12 out
vec2 vertex_texcoord;
16 gl_Position= mvpMatrix *
vec4(position, 1);
17 vertex_texcoord= texcoord;
23 #ifdef FRAGMENT_SHADER
24 out
vec4 fragment_color;
26 in
vec2 vertex_texcoord;
28 uniform sampler2D texture0;
29 uniform sampler2D texture1;
33 vec4 color0= texture(texture0, vertex_texcoord);
34 vec4 color1= texture(texture1, vertex_texcoord);
36 fragment_color= color0 * color1;
vecteur generique, utilitaire.
vecteur generique, utilitaire.
vecteur generique 4d, ou 3d homogene, utilitaire.