added sun to gui
This commit is contained in:
parent
37d3475b71
commit
edc1cb2a91
@ -181,7 +181,11 @@ void showGUI() {
|
|||||||
if (ImGui::Button("Texture", ImVec2(60, 20))) {
|
if (ImGui::Button("Texture", ImVec2(60, 20))) {
|
||||||
planetTex = Core::LoadTexture(planetTexPaths[std::abs(++planetTexIndex % 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::Text("PBR Settings");
|
||||||
ImGui::Checkbox("Lighting Model", &lightingCheck);
|
ImGui::Checkbox("Lighting Model", &lightingCheck);
|
||||||
ImGui::SliderFloat("Metal", &planetMetal, 0.01f, 1.0f);
|
ImGui::SliderFloat("Metal", &planetMetal, 0.01f, 1.0f);
|
||||||
|
Loading…
Reference in New Issue
Block a user