added sun to gui

This commit is contained in:
Natalia Nowakowska 2024-02-07 22:38:41 +01:00
parent 37d3475b71
commit edc1cb2a91

View File

@ -181,7 +181,11 @@ void showGUI() {
if (ImGui::Button("Texture", ImVec2(60, 20))) {
planetTex = Core::LoadTexture(planetTexPaths[std::abs(++planetTexIndex % 20)]);
}
ImGui::SameLine();
if (ImGui::Button("Sun", ImVec2(60, 20))) {
sunTex = Core::LoadTexture(sunTexPaths[std::abs(++sunTexIndex % 5)]);
}
ImGui::Text("PBR Settings");
ImGui::Checkbox("Lighting Model", &lightingCheck);
ImGui::SliderFloat("Metal", &planetMetal, 0.01f, 1.0f);