istereo2

diff sdr/color.v.glsl @ 6:3bccfc7d10fe

goatkit is drawing
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 23 Sep 2015 05:44:58 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sdr/color.v.glsl	Wed Sep 23 05:44:58 2015 +0300
     1.3 @@ -0,0 +1,12 @@
     1.4 +attribute vec4 attr_vertex, attr_color;
     1.5 +
     1.6 +uniform mat4 matrix_modelview, matrix_projection;
     1.7 +
     1.8 +varying vec4 vcolor;
     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 +	vcolor = attr_color;
    1.15 +}