浏览代码

followup: convex shape translucent with alphatested shadow support

AzaezelX 5 年之前
父节点
当前提交
a308261886
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;