mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 00:36:46 +00:00
Ignore alpha modifier for particle materials
This makes the tx_ash_flake.dds particles from ashcloud.nif appear.
This commit is contained in:
parent
693a097b21
commit
e274314548
2 changed files with 5 additions and 3 deletions
|
@ -106,7 +106,7 @@ Ogre::String NIFMaterialLoader::getMaterial(const Nif::ShapeData *shapedata,
|
||||||
const Nif::NiZBufferProperty *zprop,
|
const Nif::NiZBufferProperty *zprop,
|
||||||
const Nif::NiSpecularProperty *specprop,
|
const Nif::NiSpecularProperty *specprop,
|
||||||
const Nif::NiWireframeProperty *wireprop,
|
const Nif::NiWireframeProperty *wireprop,
|
||||||
bool &needTangents, bool disableLighting)
|
bool &needTangents, bool particleMaterial)
|
||||||
{
|
{
|
||||||
Ogre::MaterialManager &matMgr = Ogre::MaterialManager::getSingleton();
|
Ogre::MaterialManager &matMgr = Ogre::MaterialManager::getSingleton();
|
||||||
Ogre::MaterialPtr material = matMgr.getByName(name);
|
Ogre::MaterialPtr material = matMgr.getByName(name);
|
||||||
|
@ -245,8 +245,10 @@ Ogre::String NIFMaterialLoader::getMaterial(const Nif::ShapeData *shapedata,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (disableLighting)
|
if (particleMaterial)
|
||||||
{
|
{
|
||||||
|
alpha = 1.f; // Apparently ignored, might be overridden by particle vertex colors?
|
||||||
|
|
||||||
ambient = Ogre::Vector3(0.f);
|
ambient = Ogre::Vector3(0.f);
|
||||||
diffuse = Ogre::Vector3(0.f);
|
diffuse = Ogre::Vector3(0.f);
|
||||||
specular = Ogre::Vector3(0.f);
|
specular = Ogre::Vector3(0.f);
|
||||||
|
|
|
@ -49,7 +49,7 @@ public:
|
||||||
const Nif::NiZBufferProperty *zprop,
|
const Nif::NiZBufferProperty *zprop,
|
||||||
const Nif::NiSpecularProperty *specprop,
|
const Nif::NiSpecularProperty *specprop,
|
||||||
const Nif::NiWireframeProperty *wireprop,
|
const Nif::NiWireframeProperty *wireprop,
|
||||||
bool &needTangents, bool disableLighting=false);
|
bool &needTangents, bool particleMaterial=false);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue