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

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

Detailed Description

The sky and the light, which the shaders read each frame.

Definition at line 13 of file atmosphere.h.

Member Data Documentation

◆ ambient

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.

◆ cloudiness

float nanommo::Atmosphere::cloudiness = 0.5f

Definition at line 36 of file atmosphere.h.

◆ clouds

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.

◆ disc

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.

◆ disc_size

float nanommo::Atmosphere::disc_size = 2.5f

Definition at line 32 of file atmosphere.h.

◆ fog_far

float nanommo::Atmosphere::fog_far

Definition at line 19 of file atmosphere.h.

◆ fog_near

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.

◆ sky

std::array<float, 3> nanommo::Atmosphere::sky

The background, which the fog fades into.

Definition at line 15 of file atmosphere.h.

◆ stars

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.

◆ sun

std::array<float, 3> nanommo::Atmosphere::sun

Towards the sun.

Definition at line 21 of file atmosphere.h.

◆ sunlight

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.

◆ wetness

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.

◆ zenith

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.


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