mirror of
https://github.com/antopilo/Nuake.git
synced 2026-01-06 06:09:52 +03:00
Added back volumetric
This commit is contained in:
@@ -891,6 +891,24 @@ void SelectionPropertyWidget::DrawFile(Ref<Nuake::File> file)
|
||||
ImGui::PopStyleColor();
|
||||
}
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
{
|
||||
// Title
|
||||
ImGui::Text("Base Ambient");
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
float fogAmount = env->mVolumetric->GetBaseAmbient();
|
||||
ImGui::DragFloat("##Base Ambient", &fogAmount, .001f, 0.f, 1.0f);
|
||||
env->mVolumetric->SetBaseAmbient(fogAmount);
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
// Reset button
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(1, 1, 1, 0));
|
||||
std::string resetBloomThreshold = ICON_FA_UNDO + std::string("##resetBase");
|
||||
if (ImGui::Button(resetBloomThreshold.c_str())) env->mVolumetric->SetBaseAmbient(0.1f);
|
||||
ImGui::PopStyleColor();
|
||||
}
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
{
|
||||
// Title
|
||||
|
||||
Reference in New Issue
Block a user