Permalink
Browse files

Fix disappearing shadows

  • Loading branch information...
1 parent 6e85ac4 commit 83cfe79404ff494c45411b56f57bdfa87c45688e vlj committed Jun 22, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/karts/kart_model.cpp
@@ -340,7 +340,10 @@ scene::ISceneNode* KartModel::attachModel(bool animated_models, bool always_anim
node = irr_driver->addAnimatedMesh(m_mesh);
// as animated mesh are not cheap to render use frustum box culling
- node->setAutomaticCulling(scene::EAC_FRUSTUM_BOX);
+ if (irr_driver->isGLSL())
+ node->setAutomaticCulling(false);
+ else
+ node->setAutomaticCulling(scene::EAC_FRUSTUM_BOX);
if (always_animated)
{

0 comments on commit 83cfe79

Please sign in to comment.