istereo
diff sdr/test.v.glsl @ 22:889dade25667
added fog
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Wed, 07 Sep 2011 10:56:18 +0300 |
parents | b39d8607f4bb |
children | 70309d71c899 |
line diff
1.1 --- a/sdr/test.v.glsl Wed Sep 07 10:49:11 2011 +0300 1.2 +++ b/sdr/test.v.glsl Wed Sep 07 10:56:18 2011 +0300 1.3 @@ -3,6 +3,7 @@ 1.4 attribute vec4 attr_vertex, attr_color; 1.5 attribute vec2 attr_texcoord; 1.6 1.7 +varying vec3 vpos; 1.8 varying vec4 var_color; 1.9 varying vec2 var_texcoord; 1.10 1.11 @@ -10,6 +11,7 @@ 1.12 { 1.13 mat4 mvp = matrix_projection * matrix_modelview; 1.14 gl_Position = mvp * attr_vertex; 1.15 + vpos = (matrix_modelview * attr_vertex).xyz; 1.16 var_color = attr_color; 1.17 var_texcoord = attr_texcoord; 1.18 }