tavli

diff sdr/shadow.v.glsl @ 19:37dead56f01e

fixed shadows
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 29 Jun 2015 06:18:45 +0300
parents 986c0b76513f
children
line diff
     1.1 --- a/sdr/shadow.v.glsl	Mon Jun 29 01:29:36 2015 +0300
     1.2 +++ b/sdr/shadow.v.glsl	Mon Jun 29 06:18:45 2015 +0300
     1.3 @@ -17,6 +17,5 @@
     1.4  			0.5, 0.5, 0.5, 1.0);
     1.5  	mat4 tex_matrix = offmat * gl_TextureMatrix[1];
     1.6  
     1.7 -	shadow_tc = tex_matrix * gl_Vertex;
     1.8 -	shadow_tc = shadow_tc / shadow_tc.w;
     1.9 +	shadow_tc = tex_matrix * vec4(vpos, 1.0);
    1.10  }