feat: post-effects array parameters & add gfx.posteffects.set_array & make shadows opacity depending on clouds opacity

This commit is contained in:
MihailRis
2025-06-14 20:06:05 +03:00
parent 02a91e0b72
commit 436a89b066
14 changed files with 223 additions and 78 deletions
+6
View File
@@ -1,5 +1,6 @@
#pragma once
#include <glm/glm.hpp>
#include <string>
#include "presets/WeatherPreset.hpp"
@@ -45,6 +46,11 @@ struct Weather : Serializable {
return b.thunderRate * t + a.thunderRate * (1.0f - t);
}
float clouds() const {
float sqrtT = glm::sqrt(t);
return b.clouds * sqrtT + a.clouds * (1.0f - sqrtT);
}
dv::value serialize() const override;
void deserialize(const dv::value& src) override;
};