Merge branch 'Preview4_0' of https://github.com/Areloch/Torque3D into Preview4_0

This commit is contained in:
Areloch 2020-03-21 00:54:30 -05:00
commit 8b4d4633bc
8 changed files with 1027 additions and 1 deletions

View file

@ -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;