istereo

diff sdr/test.v.glsl @ 2:bb68fac22579

sanegl and shit
author John Tsiombikas <nuclear@mutantstargoat.com>
date Wed, 07 Sep 2011 02:48:35 +0300
parents
children 698cbf1a1b97
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sdr/test.v.glsl	Wed Sep 07 02:48:35 2011 +0300
     1.3 @@ -0,0 +1,12 @@
     1.4 +uniform mat4 matrix_modelview, matrix_projection;
     1.5 +
     1.6 +attribute vec4 attr_vertex, attr_color;
     1.7 +
     1.8 +varying vec4 var_color;
     1.9 +
    1.10 +void main()
    1.11 +{
    1.12 +	mat4 mvp = matrix_projection * matrix_modelview;
    1.13 +	gl_Position = mvp * attr_vertex;
    1.14 +	var_color = attr_color;
    1.15 +}