this is a little commit:
changed the blending functions for the logic ops emulation, now the accuracy is the best possible with the functions available in D3D. if someone is interested i'll post how i get this values :) please test and let me know the results. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4673 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
9f06dd9a0a
commit
8cc2cc11fd
|
@ -111,65 +111,65 @@ static const D3DBLEND d3dDestFactors[8] =
|
|||
|
||||
static const D3DBLENDOP d3dLogincOPop[16] =
|
||||
{
|
||||
D3DBLENDOP_ADD,
|
||||
D3DBLENDOP_ADD,
|
||||
D3DBLENDOP_ADD,
|
||||
D3DBLENDOP_ADD,
|
||||
D3DBLENDOP_ADD,
|
||||
D3DBLENDOP_ADD,
|
||||
D3DBLENDOP_ADD,
|
||||
D3DBLENDOP_ADD,
|
||||
D3DBLENDOP_ADD,//0
|
||||
D3DBLENDOP_ADD,//1
|
||||
D3DBLENDOP_SUBTRACT,//2
|
||||
D3DBLENDOP_ADD,//3
|
||||
D3DBLENDOP_REVSUBTRACT,//4
|
||||
D3DBLENDOP_ADD,//5
|
||||
D3DBLENDOP_MAX,//6
|
||||
D3DBLENDOP_ADD,//7
|
||||
|
||||
D3DBLENDOP_REVSUBTRACT,
|
||||
D3DBLENDOP_REVSUBTRACT,
|
||||
D3DBLENDOP_SUBTRACT,
|
||||
D3DBLENDOP_SUBTRACT,
|
||||
D3DBLENDOP_REVSUBTRACT,
|
||||
D3DBLENDOP_REVSUBTRACT,
|
||||
D3DBLENDOP_SUBTRACT,
|
||||
D3DBLENDOP_ADD
|
||||
D3DBLENDOP_MAX,//8
|
||||
D3DBLENDOP_MAX,//9
|
||||
D3DBLENDOP_ADD,//10
|
||||
D3DBLENDOP_ADD,//11
|
||||
D3DBLENDOP_ADD,//12
|
||||
D3DBLENDOP_ADD,//13
|
||||
D3DBLENDOP_ADD,//14
|
||||
D3DBLENDOP_ADD//15
|
||||
};
|
||||
|
||||
static const D3DBLEND d3dLogicOpSrcFactors[16] =
|
||||
{
|
||||
D3DBLEND_ZERO,
|
||||
D3DBLEND_DESTCOLOR,
|
||||
D3DBLEND_INVDESTCOLOR,
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_ZERO,
|
||||
D3DBLEND_ZERO,
|
||||
D3DBLEND_INVDESTCOLOR,
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_ZERO,//0
|
||||
D3DBLEND_DESTCOLOR,//1
|
||||
D3DBLEND_ONE,//2
|
||||
D3DBLEND_ONE,//3
|
||||
D3DBLEND_DESTCOLOR,//4
|
||||
D3DBLEND_ZERO,//5
|
||||
D3DBLEND_INVDESTCOLOR,//6
|
||||
D3DBLEND_INVDESTCOLOR,//7
|
||||
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_INVDESTCOLOR,
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_ONE
|
||||
D3DBLEND_INVSRCCOLOR,//8
|
||||
D3DBLEND_INVSRCCOLOR,//9
|
||||
D3DBLEND_INVDESTCOLOR,//10
|
||||
D3DBLEND_ONE,//11
|
||||
D3DBLEND_INVSRCCOLOR,//12
|
||||
D3DBLEND_INVSRCCOLOR,//13
|
||||
D3DBLEND_INVDESTCOLOR,//14
|
||||
D3DBLEND_ONE//15
|
||||
};
|
||||
|
||||
static const D3DBLEND d3dLogicOpDestFactors[16] =
|
||||
{
|
||||
D3DBLEND_ZERO,
|
||||
D3DBLEND_ZERO,
|
||||
D3DBLEND_ZERO,
|
||||
D3DBLEND_ZERO,
|
||||
D3DBLEND_INVSRCCOLOR,
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_INVSRCCOLOR,
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_ZERO,//0
|
||||
D3DBLEND_ZERO,//1
|
||||
D3DBLEND_INVSRCCOLOR,//2
|
||||
D3DBLEND_ZERO,//3
|
||||
D3DBLEND_ONE,//4
|
||||
D3DBLEND_ONE,//5
|
||||
D3DBLEND_INVSRCCOLOR,//6
|
||||
D3DBLEND_ONE,//7
|
||||
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_SRCCOLOR,
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_ONE,
|
||||
D3DBLEND_SRCCOLOR,
|
||||
D3DBLEND_ONE
|
||||
D3DBLEND_INVDESTCOLOR,//8
|
||||
D3DBLEND_SRCCOLOR,//9
|
||||
D3DBLEND_INVDESTCOLOR,//10
|
||||
D3DBLEND_INVDESTCOLOR,//11
|
||||
D3DBLEND_INVSRCCOLOR,//12
|
||||
D3DBLEND_ONE,//13
|
||||
D3DBLEND_INVSRCCOLOR,//14
|
||||
D3DBLEND_ONE//15
|
||||
};
|
||||
|
||||
static const D3DCULL d3dCullModes[4] =
|
||||
|
|
Loading…
Reference in New Issue