mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-28 19:17:28 +01:00
Draw volumetric clouds, their shadows, a volumetric fog and catalogue stars from a new weather system in the GL 4.6 renderer
This commit is contained in:
@@ -14,6 +14,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include "environment/moon.h"
|
||||
#include "environment/stars.h"
|
||||
#include "environment/skydome.h"
|
||||
#include "environment/weather.h"
|
||||
#include "rendering/precipitation.h"
|
||||
#include "audio/sound.h"
|
||||
|
||||
@@ -62,6 +63,13 @@ public:
|
||||
inline auto const &
|
||||
wind_azimuth() const {
|
||||
return m_wind.azimuth; }
|
||||
// clouds, fog and precipitation of the scenery, see environment/weather.h
|
||||
inline auto const &
|
||||
weather() const {
|
||||
return m_weather; }
|
||||
inline auto &
|
||||
weather() {
|
||||
return m_weather; }
|
||||
|
||||
private:
|
||||
// types
|
||||
@@ -87,6 +95,7 @@ private:
|
||||
basic_precipitation m_precipitation;
|
||||
sound_source m_rainsound { sound_placement::external, -1 };
|
||||
basic_wind m_wind;
|
||||
world_weather m_weather;
|
||||
};
|
||||
|
||||
namespace simulation {
|
||||
|
||||
Reference in New Issue
Block a user