Fixed ambient light not present when starting race with -N

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3725 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2009-07-11 00:14:04 +00:00
parent 54c3c08558
commit 3c6ba08857
3 changed files with 4 additions and 5 deletions

View File

@ -277,6 +277,7 @@ scene::ISceneNode *IrrDriver::addMesh(scene::IMesh *mesh)
return m_scene_manager->addMeshSceneNode(mesh);
} // addMesh
// ----------------------------------------------------------------------------
void IrrDriver::renderToTexture(ptr_vector<scene::IMesh, REF>& mesh, std::vector<Vec3>& mesh_location, ITexture* target, float angle)
{
scene::ISceneNode* main_node = NULL;

View File

@ -2395,7 +2395,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEBUG_INFORMATION_FORMAT = dwarf;
GCC_DEBUGGING_SYMBOLS = full;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;

View File

@ -1323,13 +1323,11 @@ void Track::loadTrackModel()
const core::vector3df &sun_pos = getSunPos();
irr_driver->getSceneManager()->setAmbientLight(video::SColor(255, 120, 120, 120));
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) );
#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);