diff options
-rw-r--r-- | source/gameengine/Ketsji/BL_BlenderShader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/BL_BlenderShader.cpp b/source/gameengine/Ketsji/BL_BlenderShader.cpp index 3f2a9a6df6a..ff3b3a2692c 100644 --- a/source/gameengine/Ketsji/BL_BlenderShader.cpp +++ b/source/gameengine/Ketsji/BL_BlenderShader.cpp @@ -97,8 +97,8 @@ void BL_BlenderShader::SetAttribs(RAS_IRasterizer* ras, const BL_Material *mat) return; gpumat = mGPUMat; - - if (ras->GetDrawingMode() == RAS_IRasterizer::KX_TEXTURED) { + if (ras->GetDrawingMode() == RAS_IRasterizer::KX_TEXTURED || (ras->GetDrawingMode() == RAS_IRasterizer::KX_SHADOW && + mat->alphablend != GEMAT_SOLID && !ras->GetUsingOverrideShader())) { GPU_material_vertex_attributes(gpumat, &attribs); attrib_num = GetAttribNum(); |