|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
The sky and the light, which the shaders read each frame. More...
#include <atmosphere.h>
Public Attributes | |
| std::array< float, 3 > | sky |
| The background, which the fog fades into. | |
| float | fog_near |
| float | fog_far |
| std::array< float, 3 > | sun |
| Towards the sun. | |
| std::array< float, 3 > | sunlight |
| What the sun adds to a face that's turned to it. | |
| std::array< float, 3 > | ambient |
| What a face gets even when it's turned away from the sun. | |
| std::array< float, 3 > | zenith |
| std::array< float, 3 > | disc |
| float | disc_size = 2.5f |
| std::array< float, 3 > | clouds |
| float | cloudiness = 0.5f |
| float | stars = 0.0f |
| float | wetness = 0.0f |
The sky and the light, which the shaders read each frame.
Definition at line 13 of file atmosphere.h.
| std::array<float, 3> nanommo::Atmosphere::ambient |
What a face gets even when it's turned away from the sun.
Definition at line 25 of file atmosphere.h.
| float nanommo::Atmosphere::cloudiness = 0.5f |
Definition at line 36 of file atmosphere.h.
| std::array<float, 3> nanommo::Atmosphere::clouds |
The clouds, where the sun's on them, and how many of the land's clouds are out, from none to all of them.
Definition at line 35 of file atmosphere.h.
| std::array<float, 3> nanommo::Atmosphere::disc |
The sun's disc, brighter than white so that the bloom spreads it, and how wide it looks across, in degrees.
Definition at line 31 of file atmosphere.h.
| float nanommo::Atmosphere::disc_size = 2.5f |
Definition at line 32 of file atmosphere.h.
| float nanommo::Atmosphere::fog_far |
Definition at line 19 of file atmosphere.h.
| float nanommo::Atmosphere::fog_near |
In metres from the camera: the fog starts at the first, and hides everything past the second.
Definition at line 18 of file atmosphere.h.
| std::array<float, 3> nanommo::Atmosphere::sky |
The background, which the fog fades into.
Definition at line 15 of file atmosphere.h.
| float nanommo::Atmosphere::stars = 0.0f |
How many of the stars show, from none in the day to all of them on a clear night.
Definition at line 39 of file atmosphere.h.
| std::array<float, 3> nanommo::Atmosphere::sun |
Towards the sun.
Definition at line 21 of file atmosphere.h.
| std::array<float, 3> nanommo::Atmosphere::sunlight |
What the sun adds to a face that's turned to it.
Definition at line 23 of file atmosphere.h.
| float nanommo::Atmosphere::wetness = 0.0f |
How wet the ground is after rain, from dry to soaked: darker, and shining where the light comes off it.
Definition at line 42 of file atmosphere.h.
| std::array<float, 3> nanommo::Atmosphere::zenith |
Overhead, where the sky is deepest. sky is its colour at the horizon, which the fog fades into.
Definition at line 28 of file atmosphere.h.