exposed atmosphere settings in weather component, and added skyExposure

This commit is contained in:
Turanszki Janos
2021-05-10 21:12:48 +02:00
parent d71c06c869
commit fc982f19b7
19 changed files with 163 additions and 95 deletions
+9 -1
View File
@@ -11,7 +11,7 @@ using namespace wiGraphics;
void WeatherWindow::Create(EditorComponent* editor)
{
wiWindow::Create("Weather Window");
SetSize(XMFLOAT2(660, 520));
SetSize(XMFLOAT2(660, 560));
float x = 180;
float y = 20;
@@ -107,6 +107,14 @@ void WeatherWindow::Create(EditorComponent* editor)
});
AddWidget(&windRandomnessSlider);
skyExposureSlider.Create(0, 4, 1, 10000, "Sky Exposure: ");
skyExposureSlider.SetSize(XMFLOAT2(100, hei));
skyExposureSlider.SetPos(XMFLOAT2(x, y += step));
skyExposureSlider.OnSlide([&](wiEventArgs args) {
GetWeather().skyExposure = args.fValue;
});
AddWidget(&skyExposureSlider);
simpleskyCheckBox.Create("Simple sky: ");
simpleskyCheckBox.SetTooltip("Simple sky will simply blend horizon and zenith color from bottom to top.");
simpleskyCheckBox.SetSize(XMFLOAT2(hei, hei));