Fix T70811 EEVEE: Alpha clip/hashed cause wrong alpha values
Was caused by division not giving a fully opaque alpha value.
This commit is contained in:
parent
ade2129f14
commit
4142f3993c
Notes:
blender-bot
2023-11-20 12:14:32 +01:00
Referenced by issue #70811, 2.81 eevee - Alpha clip/Alpha hashed causes visual glitches when exporting PNG with Alpha
|
@ -965,7 +965,8 @@ void main()
|
|||
|
||||
# ifndef USE_ALPHA_BLEND
|
||||
float alpha_div = 1.0 / max(1e-8, alpha);
|
||||
outRadiance *= alpha_div;
|
||||
outRadiance.rgb *= alpha_div;
|
||||
outRadiance.a = 1.0;
|
||||
ssrData.rgb *= alpha_div;
|
||||
# ifdef USE_SSS
|
||||
sssAlbedo.rgb *= alpha_div;
|
||||
|
|
Loading…
Reference in New Issue