bypass pixel shader for non-alphatested zprepass

This commit is contained in:
turanszkij
2017-05-12 17:41:49 +02:00
parent 89de5be441
commit c2be59b3b3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -3994,9 +3994,9 @@ void wiRenderer::RenderMeshes(const XMFLOAT3& eye, const CulledCollection& culle
}
PSTYPES realPS = GetPSTYPE(shaderType, material);
if (shaderType == SHADERTYPE_SHADOW && material->alphaRef > 1.0f - 1.0f/256.0f)
if ((shaderType == SHADERTYPE_SHADOW || shaderType == SHADERTYPE_ALPHATESTONLY) && material->alphaRef > 1.0f - 1.0f/256.0f)
{
// bypass pixel shader for non alpha tested shadows
// bypass pixel shader for non alpha tested shadows/z-prepass
GetDevice()->BindPS(nullptr, threadID);
}
else
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 11;
// minor bug fixes, alterations, refactors, updates
const int revision = 45;
const int revision = 46;
long GetVersion()