add weather intensity (WIP)

This commit is contained in:
MihailRis 2025-02-11 15:51:19 +03:00
parent 830e05733f
commit fe503d1192
5 changed files with 38 additions and 6 deletions

View file

@ -18,10 +18,24 @@ struct WeatherPreset : Serializable {
float hspeed = 0.1f;
/// @brief UV scaling
float scale = 0.1f;
/// @brief Fall opacity interpreted as zero.
/// @example if 0.8 then opacity range is 0.8-1.0 for 0.0-1.0 intensity
float minOpacity = 0.8f;
/// @brief Fall splash
std::optional<ParticlesPreset> splash;
} fall {};
/// @brief Max weather fog opacity
float fogOpacity = 0.8f;
/// @brief Weather fog depth multiplier
float fogDencity = 2.0f;
float clouds = 0.5f;
/// @brief Weather effects intensity
float intensity = 0.9f;
dv::value serialize() const override;
void deserialize(const dv::value& src) override;
};