Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/WeatherEditor/Weather/CellLightingWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ void CellLightingWidget::DrawWidget()
if (ImGui::BeginTabItem("Fog")) {
BeginScrollableContent("##FogScroll");
ImGui::SeparatorText("Fog Distance");
if (WeatherUtils::DrawSliderFloat("Fog Near", settings.fogNear, 0.0f, 10000.0f))
if (WeatherUtils::DrawSliderFloat("Fog Near", settings.fogNear, 0.0f, 163840.0f))
changed = true;
if (WeatherUtils::DrawSliderFloat("Fog Far", settings.fogFar, 0.0f, 50000.0f))
if (WeatherUtils::DrawSliderFloat("Fog Far", settings.fogFar, 0.0f, 163840.0f))
changed = true;

ImGui::SeparatorText("Fog Properties");
Expand Down Expand Up @@ -84,11 +84,11 @@ void CellLightingWidget::DrawWidget()
if (ImGui::BeginTabItem("Advanced")) {
BeginScrollableContent("##AdvancedScroll");
ImGui::SeparatorText("Light Fade Distances");
if (WeatherUtils::DrawSliderFloat("Light Fade Start", settings.lightFadeStart, 0.0f, 10000.0f))
if (WeatherUtils::DrawSliderFloat("Light Fade Start", settings.lightFadeStart, 0.0f, 163840.0f))
changed = true;
if (WeatherUtils::DrawSliderFloat("Light Fade End", settings.lightFadeEnd, 0.0f, 20000.0f))
if (WeatherUtils::DrawSliderFloat("Light Fade End", settings.lightFadeEnd, 0.0f, 163840.0f))
changed = true;
if (WeatherUtils::DrawSliderFloat("Clip Distance", settings.clipDist, 0.0f, 50000.0f))
if (WeatherUtils::DrawSliderFloat("Clip Distance", settings.clipDist, 0.0f, 163840.0f))
changed = true;

ImGui::SeparatorText("Directional Rotation");
Expand Down
22 changes: 11 additions & 11 deletions src/WeatherEditor/Weather/LightingTemplateWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,35 +77,35 @@ void LightingTemplateWidget::DrawBasicSettings()

if (ImGui::CollapsingHeader("Directional Settings", ImGuiTreeNodeFlags_DefaultOpen)) {
ImGui::Spacing();
if (MatchesSearch("Directional XY") && WeatherUtils::DrawSliderFloat("Directional XY", settings.directionalXY))
if (MatchesSearch("Directional XY") && WeatherUtils::DrawSliderFloat("Directional XY", settings.directionalXY, 0.0f, 360.0f))
changed = true;
if (MatchesSearch("Directional XY"))
ImGui::Spacing();
if (MatchesSearch("Directional Z") && WeatherUtils::DrawSliderFloat("Directional Z", settings.directionalZ))
if (MatchesSearch("Directional Z") && WeatherUtils::DrawSliderFloat("Directional Z", settings.directionalZ, 0.0f, 360.0f))
changed = true;
if (MatchesSearch("Directional Z"))
ImGui::Spacing();
if (MatchesSearch("Directional Fade") && WeatherUtils::DrawSliderFloat("Directional Fade", settings.directionalFade))
if (MatchesSearch("Directional Fade") && WeatherUtils::DrawSliderFloat("Directional Fade", settings.directionalFade, 0.0f, 10.0f))
changed = true;
if (MatchesSearch("Directional Fade"))
ImGui::Spacing();
}

if (ImGui::CollapsingHeader("Light Fade", ImGuiTreeNodeFlags_DefaultOpen)) {
ImGui::Spacing();
if (MatchesSearch("Light Fade Start") && WeatherUtils::DrawSliderFloat("Light Fade Start", settings.lightFadeStart))
if (MatchesSearch("Light Fade Start") && WeatherUtils::DrawSliderFloat("Light Fade Start", settings.lightFadeStart, 0.0f, 163840.0f))
changed = true;
if (MatchesSearch("Light Fade Start"))
ImGui::Spacing();
if (MatchesSearch("Light Fade End") && WeatherUtils::DrawSliderFloat("Light Fade End", settings.lightFadeEnd))
if (MatchesSearch("Light Fade End") && WeatherUtils::DrawSliderFloat("Light Fade End", settings.lightFadeEnd, 0.0f, 163840.0f))
changed = true;
if (MatchesSearch("Light Fade End"))
ImGui::Spacing();
}

if (ImGui::CollapsingHeader("Other", ImGuiTreeNodeFlags_DefaultOpen)) {
ImGui::Spacing();
if (MatchesSearch("Clip Distance") && WeatherUtils::DrawSliderFloat("Clip Distance", settings.clipDist))
if (MatchesSearch("Clip Distance") && WeatherUtils::DrawSliderFloat("Clip Distance", settings.clipDist, 0.0f, 163840.0f))
changed = true;
if (MatchesSearch("Clip Distance"))
ImGui::Spacing();
Expand All @@ -131,21 +131,21 @@ void LightingTemplateWidget::DrawFogSettings()
ImGui::Spacing();

ImGui::Spacing();
if (MatchesSearch("Fog Near") && WeatherUtils::DrawSliderFloat("Fog Near", settings.fogNear))
if (MatchesSearch("Fog Near") && WeatherUtils::DrawSliderFloat("Fog Near", settings.fogNear, 0.0f, 163840.0f))
changed = true;
if (MatchesSearch("Fog Near"))
ImGui::Spacing();
if (MatchesSearch("Fog Far") && WeatherUtils::DrawSliderFloat("Fog Far", settings.fogFar))
if (MatchesSearch("Fog Far") && WeatherUtils::DrawSliderFloat("Fog Far", settings.fogFar, 0.0f, 163840.0f))
changed = true;
if (MatchesSearch("Fog Far"))
ImGui::Spacing();

ImGui::Spacing();
if (MatchesSearch("Fog Power") && WeatherUtils::DrawSliderFloat("Fog Power", settings.fogPower))
if (MatchesSearch("Fog Power") && WeatherUtils::DrawSliderFloat("Fog Power", settings.fogPower, 0.0f, 10.0f))
changed = true;
if (MatchesSearch("Fog Power"))
ImGui::Spacing();
if (MatchesSearch("Fog Clamp") && WeatherUtils::DrawSliderFloat("Fog Clamp", settings.fogClamp))
if (MatchesSearch("Fog Clamp") && WeatherUtils::DrawSliderFloat("Fog Clamp", settings.fogClamp, 0.0f, 1.0f))
changed = true;
if (MatchesSearch("Fog Clamp"))
ImGui::Spacing();
Expand All @@ -162,7 +162,7 @@ void LightingTemplateWidget::DrawDALCSettings()
ImGui::SeparatorText("Directional Ambient Lighting (DALC)");
if (MatchesSearch("Specular") && WeatherUtils::DrawColorEdit("Specular", settings.dalc.specular))
changed = true;
if (MatchesSearch("Fresnel Power") && WeatherUtils::DrawSliderFloat("Fresnel Power", settings.dalc.fresnelPower))
if (MatchesSearch("Fresnel Power") && WeatherUtils::DrawSliderFloat("Fresnel Power", settings.dalc.fresnelPower, 0.0f, 10.0f))
changed = true;

ImGui::SeparatorText("Directional Colors");
Expand Down
Loading