Better weapon alignment

This commit is contained in:
jancoow
2016-06-22 00:32:19 +02:00
parent ba0482ee0a
commit 27dfaf74c4
7 changed files with 36 additions and 28 deletions
+1 -1
View File
@@ -249,6 +249,7 @@ float World::getHeight(float x, float y)
void World::draw()
{
player->setCamera();
float lightPosition[4] = { 0, 2, 1, 0 };
glLightfv(GL_LIGHT0, GL_POSITION, lightPosition);
@@ -260,7 +261,6 @@ void World::draw()
skybox->draw();
player->setCamera();
player->draw();
heightmap->Draw();