| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/fog.h>

Public Types | |
| enum | FogMode { Linear, Exp, Exp2 } |
Public Member Functions | |
| VRS_SERIALIZABLE_CLASS_ENUM (FogMode) | |
| Fog (double density=1, const Color &fogcolor=Color(0.7, 0.7, 0.7), FogMode mode=Fog::Linear, double start=0., double end=1.) | |
| virtual void | setColor (const Color &) |
| virtual Color | getColor () const |
| Fog color. | |
| virtual void | setMode (FogMode mode) |
| virtual FogMode | getMode () const |
| Fog equation. | |
| virtual void | setDensity (double) |
| virtual double | getDensity () const |
| virtual void | setStart (double) |
| virtual double | getStart () const |
| virtual void | setEnd (double) |
| virtual double | getEnd () const |
| VRS_TYPEINFO (Fog, MonoAttribute) | |
| VRS_SERIALIZABLE (Fog) | |
| enum VRS::Fog::FogMode |
| VRS::Fog::Fog | ( | double | density = 1, |
|
| const Color & | fogcolor = Color(0.7, 0.7, 0.7), |
|||
| FogMode | mode = Fog::Linear, |
|||
| double | start = 0., |
|||
| double | end = 1. | |||
| ) |
A fog shader mixes the fog color into the light accordinag to the distance between the surface and the viewpoint.
| VRS::Fog::VRS_SERIALIZABLE_CLASS_ENUM | ( | FogMode | ) |
| virtual void VRS::Fog::setColor | ( | const Color & | ) | [virtual] |
| virtual void VRS::Fog::setMode | ( | FogMode | mode | ) | [virtual] |
| Fog::FogMode VRS::Fog::getMode | ( | ) | const [inline, virtual] |
Fog equation.
| virtual void VRS::Fog::setDensity | ( | double | ) | [virtual] |
| double VRS::Fog::getDensity | ( | ) | const [inline, virtual] |
The fog is mixed i with weight exp(-density * z-depth), which is 0 at depth 0 and increases with increasing depth, but never reaches 1.
| virtual void VRS::Fog::setStart | ( | double | ) | [virtual] |
| double VRS::Fog::getStart | ( | ) | const [inline, virtual] |
| virtual void VRS::Fog::setEnd | ( | double | ) | [virtual] |
| double VRS::Fog::getEnd | ( | ) | const [inline, virtual] |
| VRS::Fog::VRS_TYPEINFO | ( | Fog | , | |
| MonoAttribute | ||||
| ) |
| VRS::Fog::VRS_SERIALIZABLE | ( | Fog | ) |