|
coastline 0.0.4
|
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>

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 {} |
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.
| std::array<float, 3> coastline::Lighting::direction {0.0f, 0.0f, 1.0f} |
The unit direction toward the light.
| std::array<float, 3> coastline::Lighting::ambient {1.0f, 1.0f, 1.0f} |
The ambient colour, from 0 to 1.
| std::array<float, 3> coastline::Lighting::directional {} |
The directional colour, from 0 to 1.
| std::array<std::array<float, 3>, 4> coastline::Lighting::ramp = CLEAR_LIGHT_RAMP |
The ambient ramp.
| std::array<float, 3> coastline::Lighting::nightLit {} |
The directional colour of a night-lit ramped instance.