Parcourir la source

followup: convex shape translucent with alphatested shadow support

AzaezelX il y a 5 ans
Parent
commit
a308261886
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Engine/source/T3D/convexShape.cpp

+ 1 - 1
Engine/source/T3D/convexShape.cpp

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