TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ ShowSettings()

void LightManager::ShowSettings ( bool  renderWindow = false,
bool *  pOpen = nullptr 
)

Definition at line 24 of file LightManager.cpp.

25{
26 if (*pOpen)
27 {
28 if (renderWindow)
29 {
30 ImGui::Begin(("Light Setting##" + std::to_string(lightManagerID)).c_str(), pOpen);
31 }
32
33 ImGui::Text("Strength");
34 ImGui::DragFloat("##lightStrength", &strength, 0.1f);
35 ImGui::Text("Position");
36 ImGui::DragFloat3("##lightPosition", &position[0], 0.01f);
37 ImGui::Separator();
38 ImGui::Separator();
39 ImGui::Text("Light Color");
40 ImGui::ColorEdit3("##lightColor", color);
41
42 if (renderWindow)
43 {
44 ImGui::End();
45 }
46 }
47}