Added back volumetric

This commit is contained in:
antopilo
2025-04-23 20:11:42 -04:00
parent e18298a8cb
commit aeac3a4e47
10 changed files with 457 additions and 7 deletions

View File

@@ -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