From c47896280ad4d9fca8d8b358408cb704d052dcfc Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Thu, 14 Oct 2004 09:40:48 +0000 Subject: [PATCH] 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. --- source/blender/render/intern/source/shadbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/render/intern/source/shadbuf.c b/source/blender/render/intern/source/shadbuf.c index 79378e33f98..b1f8a246a85 100644 --- a/source/blender/render/intern/source/shadbuf.c +++ b/source/blender/render/intern/source/shadbuf.c @@ -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. */