Manually check depth test to get per-fragment pass/fail

This commit is contained in:
baldurk
2020-07-16 13:28:45 +01:00
parent a8c97a7530
commit 4d6d949f42
3 changed files with 96 additions and 6 deletions
+3 -3
View File
@@ -281,7 +281,7 @@ public:
if(mod.primitiveID == ~0U)
ret = tr("Unknown primitive\n");
if(mod.shaderDiscarded)
if(!mod.Passed())
ret += failureString(mod);
return ret;
@@ -365,7 +365,7 @@ public:
}
else
{
if(getMod(index).shaderDiscarded)
if(!getMod(index).Passed())
return QBrush(QColor::fromRgb(255, 235, 235));
}
}
@@ -382,7 +382,7 @@ public:
}
else
{
if(getMod(index).shaderDiscarded)
if(!getMod(index).Passed())
return QBrush(textColor);
}
}