31-rsm: Switched to new ImGui.

This commit is contained in:
Branimir Karadžić 2017-04-09 19:40:16 -07:00
parent 370abf6788
commit 5eb69afa21

View File

@ -3,10 +3,10 @@
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include "common.h"
#include "camera.h"
#include "bgfx_utils.h"
#include "imgui/imgui.h"
#include <common.h>
#include <camera.h>
#include <bgfx_utils.h>
#include <imgui/imgui.h>
#include <bx/rng.h>
/*
@ -596,14 +596,19 @@ public:
, uint16_t(m_height)
);
imguiBeginArea("RSM:", 10, 100, 300, 400);
ImGui::Begin("Reflective Shadow Map"
, NULL
, ImVec2(300.0f, 400.0f)
, ImGuiWindowFlags_AlwaysAutoResize
);
imguiSlider("rsm amount", m_rsmAmount, 0.0f, 0.7f, 0.01f);
imguiSlider("vpl radius", m_vplRadius, 0.25f, 20.0f, 0.1f);
imguiSlider("light azimuth", m_lightAzimuth, 0.0f, 360.0f, 0.01f);
imguiSlider("light elevation", m_lightElevation, 35.0f, 90.0f, 0.01f);
ImGui::SliderFloat("RSM Amount", &m_rsmAmount, 0.0f, 0.7f);
ImGui::SliderFloat("VPL Radius", &m_vplRadius, 0.25f, 20.0f);
ImGui::SliderFloat("Light Azimuth", &m_lightAzimuth, 0.0f, 360.0f);
ImGui::SliderFloat("Light Elevation", &m_lightElevation, 35.0f, 90.0f);
ImGui::End();
imguiEndArea();
imguiEndFrame();
updateLightDir();