diff --git a/data/img/background_3.png b/data/img/background_3.png new file mode 100644 index 0000000..8ecdf92 Binary files /dev/null and b/data/img/background_3.png differ diff --git a/game/renderer_polygon_3d/renderer_polygon_3d.cpp b/game/renderer_polygon_3d/renderer_polygon_3d.cpp index 08e34d4..24f7385 100644 --- a/game/renderer_polygon_3d/renderer_polygon_3d.cpp +++ b/game/renderer_polygon_3d/renderer_polygon_3d.cpp @@ -42,7 +42,7 @@ namespace endofthejedi { addModel("../data/mesh/ship_ufo.stl", &m_shipModel); m_texture = nullptr; - m_backgroundTexturePath = "../data/img/test.png"; + m_backgroundTexturePath = "../data/img/background_3.png"; loadBackgroundTexture(); developer::DeveloperConsole::instance().addCallback("reload_bg", [=](const std::string &) @@ -475,7 +475,7 @@ namespace endofthejedi { exit(-1); } - (*dest)->setup(&m_shader_game_objects); + (*dest)->setup(&m_shader_game_objects); (*dest)->uploadToOpenGl(); m_models.push_back(*dest); @@ -563,7 +563,7 @@ namespace endofthejedi { // TODO: use the sun planet color for this! glm::vec3 c = glm::vec3(1.0, 1.0, 0.8); - glm::vec3 p = glm::vec3(0.3f, 0.4f, 0.0f); + glm::vec3 p = glm::vec3(0.3f, 0.4f, 0.0f); for (const game::Planet *planet : m_state->planets) { if (planet->material == game::Planet::Material::Sun) {