* sun now behind
This commit is contained in:
parent
62e38d1d0b
commit
ebe9fda67d
2 changed files with 2 additions and 1 deletions
|
@ -150,6 +150,7 @@ namespace endofthejedi {
|
||||||
|
|
||||||
glm::vec3 c = planet->getColor();
|
glm::vec3 c = planet->getColor();
|
||||||
glUniform3f(m_shader.location("color"), c.x, c.y, c.z);
|
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);
|
m_planetModel->render(m_shader);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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(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)
|
bool State::spawnShipForPlayer(Player *player)
|
||||||
|
|
Loading…
Reference in a new issue