mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add weather intensity (WIP)
This commit is contained in:
parent
830e05733f
commit
fe503d1192
5 changed files with 38 additions and 6 deletions
|
|
@ -12,6 +12,9 @@ dv::value WeatherPreset::serialize() const {
|
|||
froot["scale"] = fall.scale;
|
||||
froot["noise"] = fall.noise;
|
||||
root["fall"] = froot;
|
||||
root["fog_opacity"] = fogOpacity;
|
||||
root["fog_dencity"] = fogDencity;
|
||||
root["clouds"] = clouds;
|
||||
|
||||
return root;
|
||||
}
|
||||
|
|
@ -24,5 +27,8 @@ void WeatherPreset::deserialize(const dv::value& src) {
|
|||
froot.at("hspeed").get(fall.hspeed);
|
||||
froot.at("scale").get(fall.scale);
|
||||
froot.at("noise").get(fall.noise);
|
||||
src.at("fog_opacity").get(fogOpacity);
|
||||
src.at("fog_dencity").get(fogDencity);
|
||||
src.at("clouds").get(clouds);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue