mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
followup: convex shape translucent with alphatested shadow support
This commit is contained in:
parent
f956c17f3b
commit
a308261886
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue