Class CLightEnv: description of a lighting environment - contains all the necessary parameters for representation of the lighting within a scenario.
More...
#include <LightEnv.h>
Class CLightEnv: description of a lighting environment - contains all the necessary parameters for representation of the lighting within a scenario.
◆ CLightEnv()
◆ CalculateSunDirection()
void CLightEnv::CalculateSunDirection |
( |
| ) |
|
|
private |
◆ EvaluateUnitScaled()
Calculate brightness of a point of a unit with the given normal vector, for rendering with CPU lighting.
The resulting color contains both ambient and diffuse light. To cope with sun overbrightness, the color is scaled by 0.5.
- Parameters
-
normal | normal vector (must have length 1) |
◆ GetElevation()
float CLightEnv::GetElevation |
( |
| ) |
const |
|
inline |
◆ GetRotation()
float CLightEnv::GetRotation |
( |
| ) |
const |
|
inline |
◆ GetSunDir()
const CVector3D & CLightEnv::GetSunDir |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool CLightEnv::operator!= |
( |
const CLightEnv & |
o | ) |
const |
|
inline |
◆ operator==()
bool CLightEnv::operator== |
( |
const CLightEnv & |
o | ) |
const |
|
inline |
◆ SetElevation()
void CLightEnv::SetElevation |
( |
float |
f | ) |
|
◆ SetRotation()
void CLightEnv::SetRotation |
( |
float |
f | ) |
|
◆ CMapReader
◆ CMapWriter
◆ CXMLReader
◆ m_AmbientColor
◆ m_Bloom
◆ m_Brightness
float CLightEnv::m_Brightness |
◆ m_Contrast
float CLightEnv::m_Contrast |
◆ m_Elevation
float CLightEnv::m_Elevation |
|
private |
Height of sun above the horizon, in radians.
For example, an elevation of M_PI/2 means the sun is straight up.
◆ m_FogColor
◆ m_FogFactor
float CLightEnv::m_FogFactor |
◆ m_FogMax
float CLightEnv::m_FogMax |
◆ m_Rotation
float CLightEnv::m_Rotation |
|
private |
Direction of sun on the compass, in radians.
For example, a rotation of zero means the sun is in the direction (0,0,-1) and a rotation of M_PI/2 means the sun is in the direction (1,0,0) (not taking elevation into account).
◆ m_Saturation
float CLightEnv::m_Saturation |
◆ m_SunColor
◆ m_SunDir
Vector corresponding to m_Elevation and m_Rotation.
Updated by CalculateSunDirection.
The documentation for this class was generated from the following files:
- /home/docker/jenkins/workspace/technical-docs/source/graphics/LightEnv.h
- /home/docker/jenkins/workspace/technical-docs/source/graphics/LightEnv.cpp