Fix disappearing shadows

This commit is contained in:
vlj 2014-06-22 02:12:17 +02:00
parent 6e85ac4eab
commit 83cfe79404

View File

@ -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)
{