mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
Avoid casting shadows in first-person view
This commit is contained in:
parent
025fa4e0d5
commit
6de56615aa
1 changed files with 6 additions and 1 deletions
|
@ -371,7 +371,12 @@ NifOgre::ObjectList NpcAnimation::insertBoundedPart(const std::string &model, in
|
|||
setRenderProperties(objects, mVisibilityFlags, RQG_Main, RQG_Alpha);
|
||||
|
||||
for(size_t i = 0;i < objects.mEntities.size();i++)
|
||||
objects.mEntities[i]->getUserObjectBindings().setUserAny(Ogre::Any(group));
|
||||
{
|
||||
Ogre::Entity *ent = objects.mEntities[i];
|
||||
ent->getUserObjectBindings().setUserAny(Ogre::Any(group));
|
||||
if(mViewMode == VM_FirstPerson)
|
||||
ent->setCastShadows(false);
|
||||
}
|
||||
for(size_t i = 0;i < objects.mParticles.size();i++)
|
||||
objects.mParticles[i]->getUserObjectBindings().setUserAny(Ogre::Any(group));
|
||||
|
||||
|
|
Loading…
Reference in a new issue