soc-2008-mxcurioni: merged changes to revision 15705
[blender.git] / source / blender / render / intern / source / shadeoutput.c
index 0928042729a5c65a26cf3fb467e3246e43fbb567..5b69323667edce2188c09b7045d5431f0c430a8b 100644 (file)
@@ -1379,6 +1379,8 @@ static void shade_one_light(LampRen *lar, ShadeInput *shi, ShadeResult *shr, int
                }
                
                /* specularity */
+               shadfac[3]*= phongcorr; /* note, shadfac not allowed to be stored nonlocal */
+               
                if(shadfac[3]>0.0f && shi->spec!=0.0f && !(lar->mode & LA_NO_SPEC) && !(lar->mode & LA_ONLYSHADOW)) {
                        
                        if(!(passflag & (SCE_PASS_COMBINED|SCE_PASS_SPEC)));