Added experimental and buggy hardware skinning support + removed a useless loop in the material manager

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9253 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
funto66
2011-07-14 00:59:00 +00:00
parent 54a9df25d2
commit a8919a8252
12 changed files with 8515 additions and 216 deletions

View File

@@ -113,8 +113,9 @@ void MaterialManager::adjustForFog(video::ITexture* t,
void MaterialManager::setAllUntexturedMaterialFlags(scene::IMeshBuffer *mb) const
{
for(int i = (int)m_materials.size()-1; i>=0; i-- )
{
// BEGIN BOUM
// for(int i = (int)m_materials.size()-1; i>=0; i-- )
// {
irr::video::SMaterial& material = mb->getMaterial();
if (material.getTexture(0) == NULL)
{
@@ -126,8 +127,8 @@ void MaterialManager::setAllUntexturedMaterialFlags(scene::IMeshBuffer *mb) cons
material.ColorMaterial = irr::video::ECM_DIFFUSE_AND_AMBIENT;
material.MaterialType = irr::video::EMT_SOLID;
}
} // for i
// } // for i
// END BOUM
}
//-----------------------------------------------------------------------------
int MaterialManager::addEntity(Material *m)