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:
parent
27fa0dfc70
commit
3716e6a176
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue