Skip to content

Commit

Permalink
Fix disappearing shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
vlj committed Jun 22, 2014
1 parent 6e85ac4 commit 83cfe79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/karts/kart_model.cpp
Expand Up @@ -340,7 +340,10 @@ scene::ISceneNode* KartModel::attachModel(bool animated_models, bool always_anim


node = irr_driver->addAnimatedMesh(m_mesh); node = irr_driver->addAnimatedMesh(m_mesh);
// as animated mesh are not cheap to render use frustum box culling // 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) if (always_animated)
{ {
Expand Down

0 comments on commit 83cfe79

Please sign in to comment.