Fix for #1617
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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user