Tweaked ImGui
This commit is contained in:
parent
b51c5a7557
commit
3356413069
|
@ -298,8 +298,10 @@ int main(int argc, char** argv)
|
||||||
ImGui::SliderFloat("zFar", &camera.zFar, 2.0f, 100.0f);
|
ImGui::SliderFloat("zFar", &camera.zFar, 2.0f, 100.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGui::SetNextItemOpen(true);
|
||||||
if(ImGui::CollapsingHeader("Lighting"))
|
if(ImGui::CollapsingHeader("Lighting"))
|
||||||
{
|
{
|
||||||
|
ImGui::SetNextItemOpen(true);
|
||||||
if (ImGui::TreeNode("Ambient"))
|
if (ImGui::TreeNode("Ambient"))
|
||||||
{
|
{
|
||||||
ImGui::ColorEdit3("Color", &ambient.color.r);
|
ImGui::ColorEdit3("Color", &ambient.color.r);
|
||||||
|
@ -309,6 +311,7 @@ int main(int argc, char** argv)
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGui::SetNextItemOpen(true);
|
||||||
if (ImGui::TreeNode("Point"))
|
if (ImGui::TreeNode("Point"))
|
||||||
{
|
{
|
||||||
ImGui::ColorEdit3("Color", &pointLight.color.r);
|
ImGui::ColorEdit3("Color", &pointLight.color.r);
|
||||||
|
|
Loading…
Reference in a new issue