istereo

diff sdr/test.v.glsl @ 13:fe1cb1c567cc

at long last
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 07 Sep 2011 08:33:55 +0300
parents 698cbf1a1b97
children b39d8607f4bb
line diff
     1.1 --- a/sdr/test.v.glsl	Wed Sep 07 08:30:24 2011 +0300
     1.2 +++ b/sdr/test.v.glsl	Wed Sep 07 08:33:55 2011 +0300
     1.3 @@ -1,4 +1,4 @@
     1.4 -//uniform mat4 matrix_modelview, matrix_projection;
     1.5 +uniform mat4 matrix_modelview, matrix_projection;
     1.6  
     1.7  attribute vec4 attr_vertex, attr_color;
     1.8  
     1.9 @@ -6,7 +6,7 @@
    1.10  
    1.11  void main()
    1.12  {
    1.13 -	//mat4 mvp = matrix_projection * matrix_modelview;
    1.14 -	gl_Position = /*mvp */ attr_vertex;
    1.15 +	mat4 mvp = matrix_projection * matrix_modelview;
    1.16 +	gl_Position = mvp * attr_vertex;
    1.17  	var_color = attr_color;
    1.18  }