From dfd8c0c57d92ac6c3949a14e4f32418aa8cc2381 Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Sat, 4 Mar 2023 17:49:11 -0500 Subject: [PATCH] Added material value sliders in material editor. --- Editor/src/ComponentsPanel/MaterialEditor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Editor/src/ComponentsPanel/MaterialEditor.cpp b/Editor/src/ComponentsPanel/MaterialEditor.cpp index 8e51d6a3..6065377a 100644 --- a/Editor/src/ComponentsPanel/MaterialEditor.cpp +++ b/Editor/src/ComponentsPanel/MaterialEditor.cpp @@ -170,6 +170,9 @@ void MaterialEditor::Draw(Ref material) } ImGui::EndPopup(); } + + ImGui::SameLine(); + ImGui::DragFloat("Value##7", &material->data.u_AOValue, 0.01f, 0.0f, 1.0f); } ImGui::EndChild(); } @@ -243,6 +246,8 @@ void MaterialEditor::Draw(Ref material) } ImGui::EndPopup(); } + ImGui::SameLine(); + ImGui::DragFloat("Value##6", &material->data.u_RoughnessValue, 0.01f, 0.0f, 1.0f); } ImGui::EndChild(); }