Commit db7ed405 authored by Alexey Hohlov's avatar Alexey Hohlov
Browse files

Переключение освещения

parent de3d4e15
......@@ -144,7 +144,11 @@ void CGame::stepgame()
}*/
if (input->keyhit(VK_N)) {
lights_enable = !lights_enable;
if (lights_enable) {
lights_enable = false;
} else {
lights_enable = true;
}
render->set_lights(lights_enable);
}
......@@ -202,8 +206,8 @@ void CGame::DrawGame()
glLoadIdentity();
level->DrawGround();
level->DrawParticles();
level->DrawObjects();
level->DrawParticles();
//render->set_time(6000);
render->render();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment