Fix disappearing shadows
This commit is contained in:
parent
6e85ac4eab
commit
83cfe79404
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user