8 uniform mat4 mvpMatrix;
10 out
vec2 vertex_texcoord;
14 gl_Position= mvpMatrix *
vec4(position, 1);
15 vertex_texcoord= texcoord;
20 #ifdef FRAGMENT_SHADER
22 in
vec2 vertex_texcoord;
24 uniform sampler2D texture0;
26 out
vec4 fragment_color;
30 vec4 color= texture(texture0, vertex_texcoord);
32 fragment_color= color;
vecteur generique, utilitaire.
vecteur generique, utilitaire.
vecteur generique 4d, ou 3d homogene, utilitaire.