Experiment just to show what ambient and a light can do.

It should help figure what objects need fixing, what ambient range is useful
or what mood we can get (redish ambient for lava tracks, etc).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3620 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
mbjornstk 2009-06-19 18:38:26 +00:00
parent cb5ec0e8b0
commit 72ef6843ad

View File

@ -1270,6 +1270,8 @@ void Track::loadTrackModel()
const core::vector3df &sun_pos = getSunPos();
m_light = irr_driver->getSceneManager()->addLightSceneNode(0, sun_pos);
video::SLight light;
// HACK & TEST: checking how ambient looks for some things, must be properly done once we reach an agreement
light.AmbientColor = irr::video::SColorf(0.666666f, 0.666666f, 0.666666f, 0.0f);
m_light->setLightData(light);
// Note: the physics world for irrlicht is created in loadMainTrack
createPhysicsModel();