Enable fog for boxes, bananas, etc.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7215 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
f196a544a2
commit
73a771632b
@ -120,6 +120,7 @@ void ItemManager::loadDefaultItems()
|
||||
// don't look smooth, so for now generally disable lighting
|
||||
// FIXME : re-export models with normals instead
|
||||
mesh->setMaterialFlag(video::EMF_LIGHTING, false);
|
||||
mesh->setMaterialFlag(video::EMF_FOG_ENABLE, true);
|
||||
std::string shortName =
|
||||
StringUtils::getBasename(StringUtils::removeExtension(model_filename));
|
||||
m_all_meshes[shortName] = mesh;
|
||||
|
Loading…
x
Reference in New Issue
Block a user