ld33_umonster

diff sdr/shadow.v.glsl @ 7:92d662deb66e

capsule distance seems broken
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 25 Aug 2015 00:38:00 +0300
parents 4a6683050e29
children
line diff
     1.1 --- a/sdr/shadow.v.glsl	Sun Aug 23 05:37:09 2015 +0300
     1.2 +++ b/sdr/shadow.v.glsl	Tue Aug 25 00:38:00 2015 +0300
     1.3 @@ -6,7 +6,7 @@
     1.4  	gl_Position = ftransform();
     1.5  
     1.6  	vec3 vpos = (gl_ModelViewMatrix * gl_Vertex).xyz;
     1.7 -	normal = gl_NormalMatrix * gl_Normal;
     1.8 +	normal = normalize(gl_NormalMatrix * gl_Normal);
     1.9  	vdir = -vpos;
    1.10  	ldir = gl_LightSource[0].position.xyz - vpos;
    1.11  	gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;