forked from mirror/openmw-tes3mp
Shaders & textures are now loaded upon loading the NIF, instead of when the object becomes visible in the camera frustum. Should improve responsiveness.
This commit is contained in:
parent
d3c0851aa7
commit
455ec0996d
1 changed files with 2 additions and 0 deletions
|
@ -656,6 +656,8 @@ static Ogre::String getMaterial(const Nif::NiTriShape *shape, const Ogre::String
|
|||
else
|
||||
instance->getMaterial ()->setShadowCasterMaterial ("openmw_shadowcaster_noalpha");
|
||||
|
||||
sh::Factory::getInstance ()._ensureMaterial (matname, "Default");
|
||||
|
||||
// As of yet UNTESTED code from Chris:
|
||||
/*pass->setTextureFiltering(Ogre::TFO_ANISOTROPIC);
|
||||
pass->setDepthFunction(Ogre::CMPF_LESS_EQUAL);
|
||||
|
|
Loading…
Reference in a new issue