From ea58a736d5b1f4d6f56e81e5bdc85b542d664091 Mon Sep 17 00:00:00 2001 From: Benau Date: Mon, 28 Aug 2017 13:04:41 +0800 Subject: [PATCH] Fix displace fallback in non-advanced pipeline --- src/graphics/stk_mesh.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/graphics/stk_mesh.cpp b/src/graphics/stk_mesh.cpp index 87e2e2b29..a7a3bcd7d 100644 --- a/src/graphics/stk_mesh.cpp +++ b/src/graphics/stk_mesh.cpp @@ -84,8 +84,10 @@ TransparentMaterial getTransparentMaterialFromType(video::E_MATERIAL_TYPE type, { if (CVS->isDefferedEnabled()) return TM_DISPLACEMENT; - else + else if (tp == video::EVT_2TCOORDS) return TM_TRANSLUCENT_2TC; + else + return TM_TRANSLUCENT_STD; } if (material->getShaderType() == Material::SHADERTYPE_ADDITIVE) return TM_ADDITIVE;