mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
Proof of concept zcomploc implementation
Fixes a few depth related graphics bugs. Example in Baten Kaitos (GKBEAF): Before: http://i.imgur.com/EDdVA.png After: http://i.imgur.com/h6GuY.png Still a few bugs in this implementation: zcomploc switching is not yet implemented, and the color is wrong with this test: http://codepad.org/7GpxklOi (red on Dolphin, gray on Wii).
This commit is contained in:
@ -1146,9 +1146,12 @@ static bool WriteAlphaTest(char *&p, API_TYPE ApiType,DSTALPHA_MODE dstAlphaMode
|
|||||||
WRITE(p, "ocol1 = 0;\n");
|
WRITE(p, "ocol1 = 0;\n");
|
||||||
if (DepthTextureEnable)
|
if (DepthTextureEnable)
|
||||||
WRITE(p, "depth = 1.f;\n");
|
WRITE(p, "depth = 1.f;\n");
|
||||||
WRITE(p, "discard;\n");
|
if (!bpmem.zcontrol.zcomploc)
|
||||||
if (ApiType != API_D3D11)
|
{
|
||||||
WRITE(p, "return;\n");
|
WRITE(p, "discard;\n");
|
||||||
|
if (ApiType != API_D3D11)
|
||||||
|
WRITE(p, "return;\n");
|
||||||
|
}
|
||||||
|
|
||||||
WRITE(p, "}\n");
|
WRITE(p, "}\n");
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user