intravenous

diff sdr/vein.v.glsl @ 6:2723dc026c4f

collision detection
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 23 Apr 2012 21:43:10 +0300
parents c6a6a64df6de
children
line diff
     1.1 --- a/sdr/vein.v.glsl	Sun Apr 22 06:26:08 2012 +0300
     1.2 +++ b/sdr/vein.v.glsl	Mon Apr 23 21:43:10 2012 +0300
     1.3 @@ -1,6 +1,6 @@
     1.4  attribute vec3 attr_tang;
     1.5  
     1.6 -varying vec3 vpos, vnorm;
     1.7 +varying vec3 vpos;
     1.8  varying vec3 ldir, vdir;
     1.9  
    1.10  void main()
    1.11 @@ -18,9 +18,8 @@
    1.12  			t.x, b.x, n.x,
    1.13  			t.y, b.y, n.y,
    1.14  			t.z, b.z, n.z);
    1.15 -	ldir = tbn_mat * (gl_LightSource[0].position.xyz - vpos);
    1.16 +	ldir = tbn_mat * vec3(0, 0, 1);
    1.17  	vdir = tbn_mat * -vpos;
    1.18 -	vnorm = n;
    1.19  
    1.20  	gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
    1.21  }