mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-31 19:20:26 +00:00
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
@ -656,6 +656,8 @@ static Ogre::String getMaterial(const Nif::NiTriShape *shape, const Ogre::String
|
|||||||
else
|
else
|
||||||
instance->getMaterial ()->setShadowCasterMaterial ("openmw_shadowcaster_noalpha");
|
instance->getMaterial ()->setShadowCasterMaterial ("openmw_shadowcaster_noalpha");
|
||||||
|
|
||||||
|
sh::Factory::getInstance ()._ensureMaterial (matname, "Default");
|
||||||
|
|
||||||
// As of yet UNTESTED code from Chris:
|
// As of yet UNTESTED code from Chris:
|
||||||
/*pass->setTextureFiltering(Ogre::TFO_ANISOTROPIC);
|
/*pass->setTextureFiltering(Ogre::TFO_ANISOTROPIC);
|
||||||
pass->setDepthFunction(Ogre::CMPF_LESS_EQUAL);
|
pass->setDepthFunction(Ogre::CMPF_LESS_EQUAL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user