This commit is contained in:
MihailRis
2025-03-10 14:51:59 +03:00
parent bf5a5b243f
commit a1860ff668
4 changed files with 24 additions and 6 deletions
+4
View File
@@ -41,6 +41,10 @@ struct Weather : Serializable {
return b.fogCurve * t + a.fogCurve * (1.0f - t);
}
float thunderRate() const {
return b.thunderRate * t + a.thunderRate * (1.0f - t);
}
dv::value serialize() const override {
return dv::object({
{"a", a.serialize()},