|
|
|
@ -1809,14 +1809,6 @@ namespace NifOsg
|
|
|
|
|
if (specFlags == 0)
|
|
|
|
|
mat->setSpecular(osg::Material::FRONT_AND_BACK, osg::Vec4f(0.f,0.f,0.f,0.f));
|
|
|
|
|
|
|
|
|
|
// Particles don't have normals, so can't be diffuse lit.
|
|
|
|
|
if (particleMaterial)
|
|
|
|
|
{
|
|
|
|
|
// NB ignoring diffuse.a()
|
|
|
|
|
mat->setDiffuse(osg::Material::FRONT_AND_BACK, osg::Vec4f(0,0,0,1));
|
|
|
|
|
mat->setColorMode(osg::Material::AMBIENT);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (lightmode == 0)
|
|
|
|
|
{
|
|
|
|
|
osg::Vec4f diffuse = mat->getDiffuse(osg::Material::FRONT_AND_BACK);
|
|
|
|
|