mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 13:26:43 +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
					
				
					 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