Set fog on textures that don't appear in materials.xml too
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9791 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
#include "graphics/material.hpp"
|
||||
#include "io/file_manager.hpp"
|
||||
#include "io/xml_node.hpp"
|
||||
#include "modes/world.hpp"
|
||||
#include "tracks/track.hpp"
|
||||
#include "utils/string_utils.hpp"
|
||||
|
||||
#include <ITexture.h>
|
||||
@@ -126,6 +128,11 @@ void MaterialManager::setAllMaterialFlags(video::ITexture* t,
|
||||
|
||||
mb->getMaterial().ColorMaterial = video::ECM_DIFFUSE_AND_AMBIENT;
|
||||
|
||||
if (World::getWorld() != NULL && World::getWorld()->getTrack() != NULL)
|
||||
{
|
||||
mb->getMaterial().FogEnable = World::getWorld()->getTrack()->isFogEnabled();
|
||||
}
|
||||
|
||||
//if (UserConfigParams::m_fullscreen_antialiasing)
|
||||
// mb->getMaterial().AntiAliasing = video::EAAM_LINE_SMOOTH;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user