istereo

diff sdr/test.v.glsl @ 14:b39d8607f4bb

added textures
author John Tsiombikas <nuclear@mutantstargoat.com>
date Wed, 07 Sep 2011 09:03:51 +0300
parents fe1cb1c567cc
children 889dade25667
line diff
     1.1 --- a/sdr/test.v.glsl	Wed Sep 07 08:33:55 2011 +0300
     1.2 +++ b/sdr/test.v.glsl	Wed Sep 07 09:03:51 2011 +0300
     1.3 @@ -1,12 +1,15 @@
     1.4  uniform mat4 matrix_modelview, matrix_projection;
     1.5  
     1.6  attribute vec4 attr_vertex, attr_color;
     1.7 +attribute vec2 attr_texcoord;
     1.8  
     1.9  varying vec4 var_color;
    1.10 +varying vec2 var_texcoord;
    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  	var_color = attr_color;
    1.17 +	var_texcoord = attr_texcoord;
    1.18  }