16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 19:09:20 +02:00

basic particle system implementation

This commit is contained in:
tmj-fstate
2019-08-06 14:06:46 +02:00
parent 95aab4b629
commit fbd2ff85fa
17 changed files with 1045 additions and 10 deletions

View File

@@ -36,8 +36,25 @@ public:
void compute_season( int const Yearday ) const;
// calculates current weather
void compute_weather() const;
// data access
glm::vec3 const &
wind() const {
return m_wind.vector; }
private:
// types
struct basic_wind {
// internal state data
float azimuth;
float azimuth_change;
float velocity;
float velocity_change;
float change_time;
// output
glm::vec3 vector;
};
// methods
void update_wind();
// members
CSkyDome m_skydome;
cStars m_stars;
@@ -45,8 +62,8 @@ private:
cMoon m_moon;
TSky m_clouds;
basic_precipitation m_precipitation;
sound_source m_precipitationsound { sound_placement::external, -1 };
basic_wind m_wind;
};
namespace simulation {