followup: convex shape translucent with alphatested shadow support

This commit is contained in:
AzaezelX 2020-03-10 16:11:41 -05:00
parent f956c17f3b
commit a308261886

View file

@ -704,7 +704,7 @@ void ConvexShape::prepRenderImage( SceneRenderState *state )
// Set our Material // Set our Material
ri->matInst = matInst; ri->matInst = matInst;
if (matInst->getMaterial()->isTranslucent()) if (matInst->getMaterial()->isTranslucent() && (!(matInst->getMaterial()->isAlphatest() && state->isShadowPass())))
{ {
ri->translucentSort = true; ri->translucentSort = true;
ri->type = RenderPassManager::RIT_Translucent; ri->type = RenderPassManager::RIT_Translucent;