Fixed several vertex color problems (re-exported fort magma because some per-plane vertex colors were not supported by B3D and/or irrlicht so I needed to split a few objects to have vertex colors work fine)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6148 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
351a69adfe
commit
a2edd2a9de
@ -298,4 +298,6 @@ void Material::setMaterialProperties(video::SMaterial *m) const
|
||||
if(!m_backface_culling)
|
||||
m->setFlag(video::EMF_BACK_FACE_CULLING, false);
|
||||
|
||||
m->ColorMaterial = video::ECM_DIFFUSE_AND_AMBIENT;
|
||||
|
||||
} // setMaterialProperties
|
||||
|
@ -69,6 +69,7 @@ void MaterialManager::setAllFlatMaterialFlags(scene::IMeshBuffer *mb) const
|
||||
material.MaterialType = video::EMT_SOLID;
|
||||
material.ZWriteEnable = false;
|
||||
material.setFlag(video::EMF_ZWRITE_ENABLE, false);
|
||||
material.ColorMaterial = video::ECM_DIFFUSE_AND_AMBIENT;
|
||||
//material.setFlag(video::EMF_BACK_FACE_CULLING, false);
|
||||
//material.Wireframe=true;
|
||||
}
|
||||
@ -109,7 +110,7 @@ void MaterialManager::setAllUntexturedMaterialFlags(scene::IMeshBuffer *mb) cons
|
||||
material.EmissiveColor = video::SColor(255, 0, 0, 0);
|
||||
material.SpecularColor = video::SColor(255, 0, 0, 0);
|
||||
//material.Shininess = 0.0f;
|
||||
material.ColorMaterial = irr::video::ECM_DIFFUSE ;
|
||||
material.ColorMaterial = irr::video::ECM_DIFFUSE_AND_AMBIENT;
|
||||
material.MaterialType = irr::video::EMT_SOLID;
|
||||
}
|
||||
} // for i
|
||||
|
Loading…
Reference in New Issue
Block a user