fix merge
This commit is contained in:
parent
6e6a28c9ff
commit
34d2c82fd9
2 changed files with 48 additions and 49 deletions
|
|
@ -38,7 +38,7 @@ void RendererPolygon3d::setup() {
|
|||
addModel("../data/mesh/ship_ufo.stl", &m_shipModel);
|
||||
|
||||
m_texture = nullptr;
|
||||
m_backgroundTexturePath = "../data/img/stars_nebular.png";
|
||||
m_backgroundTexturePath = "../data/img/background_3.png";
|
||||
loadBackgroundTexture();
|
||||
|
||||
m_postprocess_shader.init();
|
||||
|
|
@ -520,7 +520,7 @@ void RendererPolygon3d::renderPlanets() {
|
|||
m_planetModel->render();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
void RendererPolygon3d::renderSun() {
|
||||
m_planetModel->bind();
|
||||
|
||||
|
|
@ -546,7 +546,7 @@ void RendererPolygon3d::renderSun() {
|
|||
m_planetModel->render();
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
void RendererPolygon3d::renderMissiles() {
|
||||
// TODO: add fire trail for missiles near the sun
|
||||
|
||||
|
|
@ -573,7 +573,7 @@ void RendererPolygon3d::renderMissiles() {
|
|||
glm::mat4 model = computeModelMatrix(ship);
|
||||
glUniformMatrix4fv(m_shader_game_objects.location("model"), 1, GL_FALSE, glm::value_ptr(model));
|
||||
|
||||
glm::vec3 c = glm::vec3(0.1, 1.0, 0.2);
|
||||
glm::vec3 c = ship->color;
|
||||
glUniform3f(m_shader_game_objects.location("materialColor"), c.x, c.y, c.z);
|
||||
|
||||
m_shipModel->render();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue