diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index a64b0539b..5c276b3c2 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -277,6 +277,7 @@ scene::ISceneNode *IrrDriver::addMesh(scene::IMesh *mesh) return m_scene_manager->addMeshSceneNode(mesh); } // addMesh +// ---------------------------------------------------------------------------- void IrrDriver::renderToTexture(ptr_vector& mesh, std::vector& mesh_location, ITexture* target, float angle) { scene::ISceneNode* main_node = NULL; diff --git a/src/ide/Xcode/STK_XCode.xcodeproj/project.pbxproj b/src/ide/Xcode/STK_XCode.xcodeproj/project.pbxproj index 1e995756b..c25260f6f 100644 --- a/src/ide/Xcode/STK_XCode.xcodeproj/project.pbxproj +++ b/src/ide/Xcode/STK_XCode.xcodeproj/project.pbxproj @@ -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; diff --git a/src/tracks/track.cpp b/src/tracks/track.cpp index 8bf8ca43b..9241e9afe 100644 --- a/src/tracks/track.cpp +++ b/src/tracks/track.cpp @@ -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);