mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
Disable specular on NIF's
This commit is contained in:
parent
0d6a3367d3
commit
2e6c63d9cd
1 changed files with 10 additions and 2 deletions
|
@ -575,9 +575,17 @@ static Ogre::String getMaterial(const Nif::NiTriShape *shape, const Ogre::String
|
|||
{
|
||||
ambient = m->data.ambient;
|
||||
diffuse = m->data.diffuse;
|
||||
specular = m->data.specular;
|
||||
emissive = m->data.emissive;
|
||||
glossiness = m->data.glossiness;
|
||||
|
||||
|
||||
// Vanilla does not handle specular. TODO: Add an engine (or ESX file) configuration option
|
||||
// to re-enable specular for future mods. Will also need to specify light specular colors somewhere.
|
||||
// Also, not sure if glossiness value here is actually correct. OGRE expects 0-255 value, not sure what range this one is.
|
||||
//glossiness = m->data.glossiness;
|
||||
//specular = m->data.specular;
|
||||
glossiness = 0;
|
||||
specular = Ogre::Vector3(0,0,0);
|
||||
|
||||
alpha = m->data.alpha;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue