[fix] Renderer Release Debug diff
This commit is contained in:
@@ -513,45 +513,31 @@ void CRenderer::Describe_Entitiy()
|
||||
if (GUI::CollapsingHeader("PostProcessing_Bloom"))
|
||||
{
|
||||
GUI::BeginChild("PostProcessing_Bloom");
|
||||
GUI::PushItemWidth(80);
|
||||
GUI::DragFloat("m_fBloomThreshold", &m_fBloomThreshold, 0.01f, 0.02f, 100.f, "%.3f");
|
||||
GUI::SliderInt("g_iEmbossingPass", &m_iBloomEmbossingPass, 0, 2, "%d");
|
||||
GUI::PopItemWidth();
|
||||
GUI::EndChild();
|
||||
}
|
||||
if (GUI::CollapsingHeader("Environment DOF"))
|
||||
{
|
||||
GUI::BeginChild("DOF_ENV", ImVec2(0, 0), true);
|
||||
GUI::PushItemWidth(80.0f);
|
||||
|
||||
GUI::Text("Far DOF (Environment)");
|
||||
GUI::Separator();
|
||||
|
||||
GUI::DragFloat("Depth Cut", &m_fDOF_ENV_CutThreshold, 0.001f, 0.0f, 20.0f, "%.4f");
|
||||
|
||||
GUI::DragFloat("Focus Dist", &m_fDOF_ENV_FocusDistance, 1.0f, 0.1f, 125.f, "%.1f");
|
||||
|
||||
GUI::DragFloat("Blur Start", &m_fDOF_ENV_StartDistance, 1.0f, 0.1f, 250.f, "%.1f");
|
||||
|
||||
GUI::DragFloat("Blur End", &m_fDOF_ENV_MaxEnd, 1.0f, 1.0f, 500.f, "%.1f");
|
||||
|
||||
GUI::DragFloat("Max Radius", &m_fDOF_ENV_AmountRadius, 0.1f, 0.0f, 10.0f, "%.2f");
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (m_fDOF_ENV_StartDistance < m_fDOF_ENV_FocusDistance) {
|
||||
m_fDOF_ENV_StartDistance = m_fDOF_ENV_FocusDistance;
|
||||
}
|
||||
|
||||
if (m_fDOF_ENV_MaxEnd < m_fDOF_ENV_StartDistance + 1.0f) {
|
||||
m_fDOF_ENV_MaxEnd = m_fDOF_ENV_StartDistance + 1.0f;
|
||||
}
|
||||
|
||||
GUI::PopItemWidth();
|
||||
GUI::EndChild();
|
||||
}
|
||||
if (GUI::CollapsingHeader("ToneMapping")) {
|
||||
GUI::BeginChild("TONE_MAP", ImVec2(0, 0), true);
|
||||
GUI::SliderInt("m_iToneMappingType", &m_iToneMappingType, 0, 2, "%d");
|
||||
GUI::SliderFloat("m_fExposure", &m_fExposure, 0.5f, 2.f, "%.3f");
|
||||
#endif // _DEBUG
|
||||
GUI::EndChild();
|
||||
}
|
||||
if (GUI::CollapsingHeader("SSAO")) {
|
||||
@@ -560,6 +546,12 @@ void CRenderer::Describe_Entitiy()
|
||||
GUI::DragFloat("fSSAO_BIAS", &m_fSSAO_BIAS, 0.001f, -2.f, 2.f, "%.5f");
|
||||
GUI::EndChild();
|
||||
}
|
||||
if (GUI::CollapsingHeader("ToneMapping")) {
|
||||
GUI::BeginChild("TONE_MAP", ImVec2(0, 0), true);
|
||||
GUI::SliderInt("m_iToneMappingType", &m_iToneMappingType, 0, 2, "%d");
|
||||
GUI::SliderFloat("m_fExposure", &m_fExposure, 0.5f, 2.f, "%.3f");
|
||||
GUI::EndChild();
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user