|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
What a land's sea is made of: its colours, its waves and its light. More...
#include <atmosphere.h>
Public Attributes | |
| Color | deep |
| Out where it's deep. Its alpha is how much of the ground it hides. | |
| Color | shallow |
| Where it's shallow, near the shore. | |
| Color | edge |
| Along the line where it meets the ground: foam on water, a crust on lava. | |
| float | height = 0.0f |
| In metres, from the still surface to the top of a wave. | |
| float | wavelength = 10.0f |
| float | pace = 1.0f |
| How fast its waves go, where 1 is as fast as water's. | |
| float | glint = 0.0f |
| How much of the sun it reflects to the eye. | |
| float | emission = 0.0f |
What a land's sea is made of: its colours, its waves and its light.
Definition at line 46 of file atmosphere.h.
| Color nanommo::Liquid::deep |
Out where it's deep. Its alpha is how much of the ground it hides.
Definition at line 48 of file atmosphere.h.
| Color nanommo::Liquid::edge |
Along the line where it meets the ground: foam on water, a crust on lava.
Definition at line 52 of file atmosphere.h.
| float nanommo::Liquid::emission = 0.0f |
The light it gives off of its own, at a wave's middle height, added to the sun's, where 1 is as bright as a face turned to a white sun. The top of a wave gives off four times that, and the bottom none.
Definition at line 65 of file atmosphere.h.
| float nanommo::Liquid::glint = 0.0f |
How much of the sun it reflects to the eye.
Definition at line 61 of file atmosphere.h.
| float nanommo::Liquid::height = 0.0f |
In metres, from the still surface to the top of a wave.
Definition at line 54 of file atmosphere.h.
| float nanommo::Liquid::pace = 1.0f |
How fast its waves go, where 1 is as fast as water's.
Definition at line 59 of file atmosphere.h.
| Color nanommo::Liquid::shallow |
Where it's shallow, near the shore.
Definition at line 50 of file atmosphere.h.
| float nanommo::Liquid::wavelength = 10.0f |
In metres, from the top of a wave to the next, of the longest of its three waves.
Definition at line 57 of file atmosphere.h.