From a308261886eded32702300685442edc455b6e346 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Tue, 10 Mar 2020 16:11:41 -0500 Subject: [PATCH] followup: convex shape translucent with alphatested shadow support --- Engine/source/T3D/convexShape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/T3D/convexShape.cpp b/Engine/source/T3D/convexShape.cpp index 2b6fa2448..12deb300d 100644 --- a/Engine/source/T3D/convexShape.cpp +++ b/Engine/source/T3D/convexShape.cpp @@ -704,7 +704,7 @@ void ConvexShape::prepRenderImage( SceneRenderState *state ) // Set our Material ri->matInst = matInst; - if (matInst->getMaterial()->isTranslucent()) + if (matInst->getMaterial()->isTranslucent() && (!(matInst->getMaterial()->isAlphatest() && state->isShadowPass()))) { ri->translucentSort = true; ri->type = RenderPassManager::RIT_Translucent;