Fix #24097: halfway shadow buffer rendererd incorrectly with spot halo. This

trick can't work with any volumetric effect, so disabled it in case halo is
enabled.
This commit is contained in:
Brecht Van Lommel 2010-10-02 10:39:53 +00:00
parent 27fa0dfc70
commit 3716e6a176
1 changed files with 4 additions and 0 deletions

View File

@ -3748,6 +3748,10 @@ static GroupObject *add_render_lamp(Render *re, Object *ob)
/* pre-scale */
lar->sh_invcampos[2]*= lar->sh_zfac;
/* halfway shadow buffer doesn't work for volumetric effects */
if(lar->buftype == LA_SHADBUF_HALFWAY)
lar->buftype = LA_SHADBUF_REGULAR;
}
}
else if(la->type==LA_HEMI) {