fix weather interpolation & add 'fall.max_intensity' property

This commit is contained in:
MihailRis
2025-03-02 10:38:30 +03:00
parent 7fc226f70f
commit 8640730520
6 changed files with 40 additions and 10 deletions
+2
View File
@@ -13,6 +13,7 @@ dv::value WeatherPreset::serialize() const {
froot["noise"] = fall.noise;
froot["min_opacity"] = fall.minOpacity;
froot["max_opacity"] = fall.maxOpacity;
froot["max_intensity"] = fall.maxIntensity;
froot["opaque"] = fall.opaque;
if (fall.splash) {
froot["splash"] = fall.splash->serialize();
@@ -38,6 +39,7 @@ void WeatherPreset::deserialize(const dv::value& src) {
froot.at("noise").get(fall.noise);
froot.at("min_opacity").get(fall.minOpacity);
froot.at("max_opacity").get(fall.maxOpacity);
froot.at("max_intensity").get(fall.maxIntensity);
froot.at("opaque").get(fall.opaque);
if (froot.has("splash")) {