mirror of https://github.com/PCSX2/pcsx2.git
GSdx:
- Added a hack that changes how alpha is handled. This can be used to fix stuff like too bright blending, bad effect leftovers or "ghost layers". Enable via ini > UserHacks_AlphaHack = 1 git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2594 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
16750e9289
commit
9960c24af7
|
@ -30,6 +30,7 @@ class GSRendererDX : public GSRendererHW<Vertex>
|
|||
bool m_logz;
|
||||
bool m_fba;
|
||||
bool UserHacks_HalfPixelOffset;
|
||||
bool UserHacks_AlphaHack;
|
||||
|
||||
protected:
|
||||
int m_topology;
|
||||
|
@ -45,6 +46,7 @@ public:
|
|||
m_logz = !!theApp.GetConfig("logz", 0);
|
||||
m_fba = !!theApp.GetConfig("fba", 1);
|
||||
UserHacks_HalfPixelOffset = !!theApp.GetConfig("UserHacks_HalfPixelOffset", 0);
|
||||
UserHacks_AlphaHack = !!theApp.GetConfig("UserHacks_AlphaHack", 0);
|
||||
}
|
||||
|
||||
virtual ~GSRendererDX()
|
||||
|
@ -227,7 +229,7 @@ public:
|
|||
ps_sel.clr1 = om_bsel.IsCLR1();
|
||||
ps_sel.fba = context->FBA.FBA;
|
||||
ps_sel.aout = context->FRAME.PSM == PSM_PSMCT16 || context->FRAME.PSM == PSM_PSMCT16S || (context->FRAME.FBMSK & 0xff000000) == 0x7f000000 ? 1 : 0;
|
||||
|
||||
if (UserHacks_AlphaHack) ps_sel.aout = 1;
|
||||
if(PRIM->FGE)
|
||||
{
|
||||
ps_sel.fog = 1;
|
||||
|
|
Loading…
Reference in New Issue