coastline 0.0.4
Loading...
Searching...
No Matches
coastline::Lighting Struct Reference

The lights of a model, an ambient colour and a directional colour from a direction in the space the model is placed in. More...

#include <scenerenderer.h>

Collaboration diagram for coastline::Lighting:

Public Attributes

std::array< float, 3 > direction {0.0f, 0.0f, 1.0f}
std::array< float, 3 > ambient {1.0f, 1.0f, 1.0f}
std::array< float, 3 > directional {}
std::array< std::array< float, 3 >, 4 > ramp = CLEAR_LIGHT_RAMP
std::array< float, 3 > nightLit {}

Detailed Description

The lights of a model, an ambient colour and a directional colour from a direction in the space the model is placed in.

A ramped instance of a track takes its ambient colour from the ramp by the low bits of its flags, and a directional colour only where it is lit at night.

Member Data Documentation

◆ direction

std::array<float, 3> coastline::Lighting::direction {0.0f, 0.0f, 1.0f}

The unit direction toward the light.

◆ ambient

std::array<float, 3> coastline::Lighting::ambient {1.0f, 1.0f, 1.0f}

The ambient colour, from 0 to 1.

◆ directional

std::array<float, 3> coastline::Lighting::directional {}

The directional colour, from 0 to 1.

◆ ramp

std::array<std::array<float, 3>, 4> coastline::Lighting::ramp = CLEAR_LIGHT_RAMP

The ambient ramp.

◆ nightLit

std::array<float, 3> coastline::Lighting::nightLit {}

The directional colour of a night-lit ramped instance.


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