istereo2

diff sdr/test.v.glsl @ 2:81d35769f546

added the tunnel effect source
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 19 Sep 2015 05:51:51 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sdr/test.v.glsl	Sat Sep 19 05:51:51 2015 +0300
     1.3 @@ -0,0 +1,17 @@
     1.4 +uniform mat4 matrix_modelview, matrix_projection, matrix_texture;
     1.5 +
     1.6 +attribute vec4 attr_vertex, attr_color;
     1.7 +attribute vec2 attr_texcoord;
     1.8 +
     1.9 +varying vec3 vpos;
    1.10 +varying vec4 var_color;
    1.11 +varying vec2 var_texcoord;
    1.12 +
    1.13 +void main()
    1.14 +{
    1.15 +	mat4 mvp = matrix_projection * matrix_modelview;
    1.16 +	gl_Position = mvp * attr_vertex;
    1.17 +	vpos = (matrix_modelview * attr_vertex).xyz;
    1.18 +	var_color = attr_color;
    1.19 +	var_texcoord = (matrix_texture * vec4(attr_texcoord, 0.0, 1.0)).xy;
    1.20 +}