Added some ambient light for windows only, since otherwise the
tracks are just too dark. Reason for this is not known, it looks fine on Macs without this call. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3687 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
3d68830c60
commit
853bd9a0d3
@ -1312,8 +1312,11 @@ void Track::loadTrackModel()
|
||||
m_light = irr_driver->getSceneManager()->addLightSceneNode(NULL, sun_pos, video::SColorf(1.0f,1.0f,1.0f));
|
||||
m_light->setLightType(video::ELT_DIRECTIONAL); // ELT_DIRECTIONAL , ELT_POINT
|
||||
m_light->setRotation( core::vector3df(180, 45, 45) );
|
||||
// m_light->getLightData().AmbientColor = irr::video::SColorf(0.6f, 0.6f, 0.6f, 1.0f);
|
||||
|
||||
#ifdef WIN32
|
||||
//FIXME: for unknown reasons on windows there is no ambient light :(
|
||||
m_light->getLightData().AmbientColor = irr::video::SColorf(0.3f, 0.3f, 0.3f, 1.0f);
|
||||
#endif
|
||||
|
||||
//m_light->getLightData().Attenuation = core::vector3df(0.01, 0.01, 0.01);
|
||||
m_light->getLightData().DiffuseColor = irr::video::SColorf(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
m_light->getLightData().SpecularColor = irr::video::SColorf(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user