* sun now behind

This commit is contained in:
end 2016-09-29 09:22:15 +02:00
parent 62e38d1d0b
commit ebe9fda67d
2 changed files with 2 additions and 1 deletions

View file

@ -150,6 +150,7 @@ namespace endofthejedi {
glm::vec3 c = planet->getColor();
glUniform3f(m_shader.location("color"), c.x, c.y, c.z);
glUniform3f(m_shader.location("lightpos"), 0.5f, 0.5f, -4.0f);
m_planetModel->render(m_shader);
}

View file

@ -50,7 +50,7 @@ namespace game {
planets.push_back(new Planet(pos, i, 0.03 + 0.07*util::randf_0_1()));
}
planets.push_back(new Planet(glm::vec2(0.0f, 0.0f), 0, 0.1f));
planets.push_back(new Planet(glm::vec2(0.3f, 0.5f), 0, 0.1f));
}
bool State::spawnShipForPlayer(Player *player)