|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <sky.h>
Public Member Functions | |
| Sky () | |
| ~Sky () | |
| Sky (const Sky &)=delete | |
| Sky & | operator= (const Sky &)=delete |
| void | Gather (uint32_t seed) |
| void | Draw (const Camera3D &camera, const Atmosphere &atmosphere, float seconds) const |
| void | Shade (Shader shader, const Camera3D &camera, const Atmosphere &atmosphere, float seconds) const |
Static Public Attributes | |
| static constexpr int | kClouds = 40 |
| The most clouds a land has, all of them on a cloudy day. | |
| static constexpr int | kShadows = 64 |
| static constexpr Vector2 | kWind = {2.5f, 1.0f} |
| In metres a second, which way the wind blows the clouds. | |
| static constexpr float | kSpread = 900.0f |
The sky over a land: its colour from the horizon up, the sun, and low-poly clouds that drift over with the wind, whose shadows drift over the ground beneath them.
|
delete |
| void nanommo::Sky::Draw | ( | const Camera3D & | camera, |
| const Atmosphere & | atmosphere, | ||
| float | seconds ) const |
| void nanommo::Sky::Gather | ( | uint32_t | seed | ) |
| void nanommo::Sky::Shade | ( | Shader | shader, |
| const Camera3D & | camera, | ||
| const Atmosphere & | atmosphere, | ||
| float | seconds ) const |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |