3dphotoshoot

diff 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
line diff
     1.1 --- a/sdr/vertex.glsl	Thu Jun 11 04:56:33 2015 +0300
     1.2 +++ b/sdr/vertex.glsl	Sat Jun 13 05:32:07 2015 +0300
     1.3 @@ -1,12 +1,13 @@
     1.4 -attribute vec4 attr_vertex, attr_texcoord;
     1.5 +attribute vec4 attr_vertex, attr_texcoord, attr_color;
     1.6  
     1.7  uniform mat4 matrix_modelview, matrix_projection, matrix_texture;
     1.8  
     1.9 -varying vec4 tex_coords;
    1.10 +varying vec4 tex_coords, color;
    1.11  
    1.12  void main()
    1.13  {
    1.14  	mat4 mvp = matrix_projection * matrix_modelview;
    1.15  	gl_Position = mvp * attr_vertex;
    1.16  	tex_coords = matrix_texture * attr_texcoord;
    1.17 +	color = attr_color;
    1.18  }