mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
fix weather interpolation & add 'fall.max_intensity' property
This commit is contained in:
parent
7fc226f70f
commit
8640730520
6 changed files with 40 additions and 10 deletions
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue