Make the thunderbird traffic light bright even if facing away from the sun

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9864 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-09-18 18:52:50 +00:00
parent fb15ff1277
commit decd66ca84

View File

@ -201,5 +201,12 @@ void Referee::selectReadySetGo(int rsg)
if(m_st_traffic_buffer<0) return;
video::SMaterial &m = m_scene_node->getMesh()->getMeshBuffer(m_st_traffic_buffer)->getMaterial();
m.setTexture(0, m_st_traffic_lights[rsg]);
// disable lighting, we need to see the traffic light even if facing away
// from the sun
m.AmbientColor = video::SColor(255, 255, 255, 255);
m.DiffuseColor = video::SColor(255, 255, 255, 255);
m.EmissiveColor = video::SColor(255, 255, 255, 255);
m.SpecularColor = video::SColor(255, 255, 255, 255);
} // selectReadySetGo