forked from bartvdbraak/blender
Bug fix #1948
When using a backbuffer with alpha, but alpha is not premulled, you can get weird rendering results with halos or lens flare. This was caused by optimize rule in alpha routine that assumed alpha==0 means color is zero. Removed for the the halo case.
This commit is contained in:
parent
25165da42d
commit
7a686d2d7e
@ -858,11 +858,6 @@ void RE_addalphaAddfac(char *doel, char *bron, char addfac)
|
|||||||
|
|
||||||
int c, mul;
|
int c, mul;
|
||||||
|
|
||||||
if( doel[3]==0) {
|
|
||||||
*((unsigned int *)doel)= *((unsigned int *)bron);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
mul= 255 - (bron[3]*(255-addfac))/255;
|
mul= 255 - (bron[3]*(255-addfac))/255;
|
||||||
|
|
||||||
c= ((mul*doel[0])/255)+bron[0];
|
c= ((mul*doel[0])/255)+bron[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user