Precomputed Atmospheric Scattering (#165)

* Precomputed Atmospheric Scattering

* SSR temporal change

* weather window fix; sky precomputation only when realistic sky enabled; linux fix?

* refactors, fix

* revert to correctly working dxc version

Co-authored-by: Turánszki János <turanszkij@users.noreply.github.com>
Co-authored-by: Turanszki Janos <turanszkij@gmail.com>
This commit is contained in:
Kliaxe
2020-10-29 20:12:45 +01:00
committed by GitHub
parent 38cad754f1
commit 11454a6e64
23 changed files with 1469 additions and 332 deletions
+19
View File
@@ -115,9 +115,27 @@ void WeatherWindow::Create(EditorComponent* editor)
simpleskyCheckBox.OnClick([&](wiEventArgs args) {
auto& weather = GetWeather();
weather.SetSimpleSky(args.bValue);
if (args.bValue)
{
weather.SetRealisticSky(false);
}
});
AddWidget(&simpleskyCheckBox);
realisticskyCheckBox.Create("Realistic sky: ");
realisticskyCheckBox.SetTooltip("Physically based sky rendering model.");
realisticskyCheckBox.SetSize(XMFLOAT2(hei, hei));
realisticskyCheckBox.SetPos(XMFLOAT2(x + 120, y));
realisticskyCheckBox.OnClick([&](wiEventArgs args) {
auto& weather = GetWeather();
weather.SetRealisticSky(args.bValue);
if (args.bValue)
{
weather.SetSimpleSky(false);
}
});
AddWidget(&realisticskyCheckBox);
skyButton.Create("Load Sky");
skyButton.SetTooltip("Load a skybox cubemap texture...");
skyButton.SetSize(XMFLOAT2(240, hei));
@@ -510,6 +528,7 @@ void WeatherWindow::Update()
}
simpleskyCheckBox.SetCheck(weather.IsSimpleSky());
realisticskyCheckBox.SetCheck(weather.IsRealisticSky());
ocean_enabledCheckBox.SetCheck(weather.IsOceanEnabled());
ocean_patchSizeSlider.SetValue(weather.oceanParameters.patch_length);