Shaders & textures are now loaded upon loading the NIF, instead of when the object becomes visible in the camera frustum. Should improve responsiveness.

actorid
scrawl 12 years ago
parent d3c0851aa7
commit 455ec0996d

@ -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…
Cancel
Save