10 uniform mat4 mvpMatrix;
12 out
vec2 vertex_texcoord;
16 gl_Position= mvpMatrix *
vec4(position, 1);
17 vertex_texcoord= texcoord;
22 #ifdef FRAGMENT_SHADER
24 in
vec2 vertex_texcoord;
26 uniform sampler2D base_texture;
27 uniform sampler2D detail_texture;
29 out
vec4 fragment_color;
33 vec4 color= texture(base_texture, vertex_texcoord);
34 color= color * 0.5 + texture(detail_texture, vertex_texcoord) * 0.5;
36 fragment_color= color;
vecteur generique, utilitaire.
vecteur generique, utilitaire.
vecteur generique 4d, ou 3d homogene, utilitaire.