nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::Liquid Struct Reference

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

Detailed Description

What a land's sea is made of: its colours, its waves and its light.

Definition at line 46 of file atmosphere.h.

Member Data Documentation

◆ deep

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.

◆ edge

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.

◆ emission

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.

◆ glint

float nanommo::Liquid::glint = 0.0f

How much of the sun it reflects to the eye.

Definition at line 61 of file atmosphere.h.

◆ height

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.

◆ pace

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.

◆ shallow

Color nanommo::Liquid::shallow

Where it's shallow, near the shore.

Definition at line 50 of file atmosphere.h.

◆ wavelength

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.


The documentation for this struct was generated from the following file: