Volumetric spothalo shadow clipped at z=0.0 instead of correct z= -1.0.
Just forgot that zbuffer for spot shadow uses entire signed integer range.
This commit is contained in:
2004-10-14 09:40:48 +00:00
parent 6cc560682c
commit c47896280a

View File

@@ -708,7 +708,7 @@ float shadow_halo(LampRen *lar, float *p1, float *p2)
zf= zf1 + labda*(zf2-zf1);
count+= 1.0;
if(zf<= 0.0) lightcount += 1.0; /* close to the spot */
if(zf<= -1.0) lightcount += 1.0; /* close to the spot */
else {
/* make sure, behind the clipend we extend halolines. */