3#include "scene/Object.hpp"
4#include "resources/ResourcesManager.hpp"
5#include "system/Codable.hpp"
26 void update(
double fullTime,
double frameTime)
override;
54 glm::vec3
sunColor = glm::vec3(1.474f, 1.8504f, 1.91198f);
55 glm::vec3
kRayleigh = glm::vec3(5.5e-6f, 13.0e-6f, 22.4e-6f);
Wraps an animated property so that the initial value is preserved.
Definition: Animated.hpp:11
Represent a 3D textured object.
Definition: Object.hpp:16
Represent a background environment with atmospheric scattering. The sun direction can be animated.
Definition: Sky.hpp:14
bool decode(const KeyValues ¶ms, Storage options) override
Definition: Sky.cpp:7
KeyValues encode() const override
Definition: Sky.cpp:23
void update(double fullTime, double frameTime) override
Definition: Sky.cpp:30
Animated< glm::vec3 > _sunDirection
The sun direction.
Definition: Sky.hpp:68
const glm::vec3 & direction() const
Definition: Sky.hpp:49
Storage
Storage and loading options.
Definition: ResourcesManager.hpp:14
Represent a key-values tuple.
Definition: Config.hpp:9
Atmosphere parameters. Default values correspond to Earth-like atmosphere.
Definition: Sky.hpp:53
float sunRadius
Sun angular radius.
Definition: Sky.hpp:63
float heightMie
Mie characteristic height.
Definition: Sky.hpp:61
glm::vec3 sunColor
Sun direct color.
Definition: Sky.hpp:54
float gMie
Mie g constant.
Definition: Sky.hpp:62
float sunIntensity
Sun intensity.
Definition: Sky.hpp:58
float topRadius
Radius of the atmosphere.
Definition: Sky.hpp:57
float groundRadius
Radius of the planet.
Definition: Sky.hpp:56
float heightRayleigh
Mie characteristic height.
Definition: Sky.hpp:60
glm::vec3 kRayleigh
Rayleigh coefficients.
Definition: Sky.hpp:55
float sunRadiusCos
Cosine of the sun angular radius.
Definition: Sky.hpp:64
float kMie
Mie coefficients.
Definition: Sky.hpp:59