Fixed shiny elephant on GP win screen by reducing sun intensity
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6482 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
ba7f3c0ac4
commit
54643a6d6b
@ -188,14 +188,15 @@ void GrandPrixWin::init()
|
||||
m_podium_step[2]->setPosition( core::vector3df(m_podium_x[2], INITIAL_PODIUM_Y, m_podium_z[2]) );
|
||||
|
||||
scene::ISceneManager* sceneManager = irr_driver->getSceneManager();
|
||||
sceneManager->setAmbientLight(video::SColor(255, 120, 120, 120));
|
||||
sceneManager->setAmbientLight(video::SColor(255, 95, 95, 95));
|
||||
|
||||
const core::vector3df &sun_pos = core::vector3df( 0, 200, 100.0f );
|
||||
m_light = irr_driver->getSceneManager()->addLightSceneNode(NULL, sun_pos,
|
||||
video::SColorf(1.0f,1.0f,1.0f),
|
||||
video::SColorf(0.25f,0.25f,0.25f),
|
||||
300.0f /* radius */);
|
||||
m_light->getLightData().DiffuseColor = irr::video::SColorf(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
m_light->getLightData().SpecularColor = irr::video::SColorf(1.0f, 0.0f, 0.0f, 0.0f);
|
||||
m_light->getLightData().DiffuseColor = irr::video::SColorf(0.25f, 0.25f, 0.25f, 1.0f);
|
||||
m_light->getLightData().AmbientColor = irr::video::SColorf(0.25f, 0.25f, 0.25f, 1.0f);
|
||||
m_light->getLightData().SpecularColor = irr::video::SColorf(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
|
||||
sfx_manager->quickSound("winner");
|
||||
} // init
|
||||
|
@ -169,7 +169,7 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name, cons
|
||||
else if (i % 4 == 2)
|
||||
{
|
||||
GrandPrixWin* scene = GrandPrixWin::getInstance();
|
||||
const std::string winners[] = { "tux", "nolok", "pidgin" };
|
||||
const std::string winners[] = { "elephpant", "nolok", "pidgin" };
|
||||
StateManager::get()->pushScreen(scene);
|
||||
scene->setKarts( winners );
|
||||
}
|
||||
@ -179,7 +179,7 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name, cons
|
||||
StateManager::get()->pushScreen(scene);
|
||||
std::vector<std::string> losers;
|
||||
losers.push_back("nolok");
|
||||
losers.push_back("tux");
|
||||
losers.push_back("elephpant");
|
||||
losers.push_back("wilber");
|
||||
scene->setKarts( losers );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user