Browse Source

followup: convex shape translucent with alphatested shadow support

AzaezelX 5 năm trước cách đây
mục cha
commit
a308261886
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
       ri->matInst = matInst;
-      if (matInst->getMaterial()->isTranslucent())
+      if (matInst->getMaterial()->isTranslucent() && (!(matInst->getMaterial()->isAlphatest() && state->isShadowPass())))
       {
          ri->translucentSort = true;
          ri->type = RenderPassManager::RIT_Translucent;