dos3d

diff src/mingl.c @ 13:7b574ba5758e

fixed the directional light
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 28 Nov 2011 05:12:33 +0200
parents 0909996838ff
children 1e9f0b3616fa
line diff
     1.1 --- a/src/mingl.c	Mon Nov 28 05:03:22 2011 +0200
     1.2 +++ b/src/mingl.c	Mon Nov 28 05:12:33 2011 +0200
     1.3 @@ -196,8 +196,6 @@
     1.4  	transform(&st.lpos[ltidx], &pos, st.matrix[MGL_MODELVIEW][st.mtop[MGL_MODELVIEW]]);
     1.5  
     1.6  	if(fabs(st.lpos[ltidx].w) < 1e-6) {
     1.7 -		st.lpos[ltidx].w = 1.0;
     1.8 -
     1.9  		NORMALIZE(st.lpos[ltidx]);
    1.10  	} else {
    1.11  		st.lpos[ltidx].x /= st.lpos[ltidx].w;