mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-29 10:24:10 +01:00
[tests] Add alpha test > 255 to this triangle mess
This commit is contained in:
parent
7567486668
commit
2caa3c9f88
@ -46,6 +46,7 @@ PS_OUTPUT main( VS_OUTPUT IN ) {
|
||||
PS_OUTPUT OUT;
|
||||
|
||||
OUT.Colour = tex2D(g_texDepth, float2(0, 0));
|
||||
OUT.Colour = 1.0;
|
||||
|
||||
return OUT;
|
||||
}
|
||||
@ -271,6 +272,10 @@ public:
|
||||
|
||||
D3DLOCKED_RECT rect;
|
||||
status = myCopyThing->LockRect(0, &rect, nullptr, D3DLOCK_READONLY | D3DLOCK_NOSYSLOCK);
|
||||
|
||||
m_device->SetRenderState(D3DRS_ALPHAREF, 256 + 255);
|
||||
m_device->SetRenderState(D3DRS_ALPHAFUNC, D3DCMP_LESSEQUAL);
|
||||
m_device->SetRenderState(D3DRS_ALPHATESTENABLE, TRUE);
|
||||
}
|
||||
|
||||
void run() {
|
||||
|
Loading…
Reference in New Issue
Block a user