Archived
1
Fork 0

Add configurable light size parameter to debug menu

This commit is contained in:
redstrate 2021-05-12 10:46:33 -04:00
parent eab8a265f4
commit 6d9cdfd969

View file

@ -60,6 +60,7 @@ void draw_lighting() {
for(auto& [obj, light] : lights) { for(auto& [obj, light] : lights) {
auto& transform = engine->get_scene()->get<Transform>(obj); auto& transform = engine->get_scene()->get<Transform>(obj);
ImGui::DragFloat3((engine->get_scene()->get(obj).name + "Position").c_str(), transform.position.ptr()); ImGui::DragFloat3((engine->get_scene()->get(obj).name + "Position").c_str(), transform.position.ptr());
ImGui::DragFloat((engine->get_scene()->get(obj).name + "Light Size").c_str(), &light.size, 0.1f);
} }
ImGui::Text("Environment"); ImGui::Text("Environment");