Fixed bug that caused translucent objects to become opaque when full brightness is turned on in Visual Mode

This commit is contained in:
codeimp 2010-09-17 21:50:53 +00:00
parent 5097550d02
commit 41ee5f66bd

View file

@ -70,6 +70,7 @@ float4 ps_main(PixelData pd) : COLOR
float4 ps_fullbright(PixelData pd) : COLOR
{
float4 tcolor = tex2D(texturesamp, pd.uv);
tcolor.a *= pd.color.a;
// Blend texture color and modulation color
return tcolor * modulatecolor;