3dphotoshoot

annotate sdr/vertex.glsl @ 22:d7fe157c402d

fonts
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 13 Jun 2015 05:32:07 +0300
parents 4ca4e3c5a754
children ac80210d5fbe
rev   line source
nuclear@22 1 attribute vec4 attr_vertex, attr_texcoord, attr_color;
nuclear@21 2
nuclear@21 3 uniform mat4 matrix_modelview, matrix_projection, matrix_texture;
nuclear@21 4
nuclear@22 5 varying vec4 tex_coords, color;
nuclear@21 6
nuclear@21 7 void main()
nuclear@21 8 {
nuclear@21 9 mat4 mvp = matrix_projection * matrix_modelview;
nuclear@21 10 gl_Position = mvp * attr_vertex;
nuclear@21 11 tex_coords = matrix_texture * attr_texcoord;
nuclear@22 12 color = attr_color;
nuclear@21 13 }