From edc1cb2a91e82d10d10d45195686deab5931013d Mon Sep 17 00:00:00 2001 From: Natalia Nowakowska Date: Wed, 7 Feb 2024 22:38:41 +0100 Subject: [PATCH] added sun to gui --- grk/cw 6/src/Planet.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/grk/cw 6/src/Planet.hpp b/grk/cw 6/src/Planet.hpp index cb415e9..010ad5c 100644 --- a/grk/cw 6/src/Planet.hpp +++ b/grk/cw 6/src/Planet.hpp @@ -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);