22#ifndef INCLUDED_LIGHTENV
23#define INCLUDED_LIGHTENV
Class CLightEnv: description of a lighting environment - contains all the necessary parameters for re...
Definition: LightEnv.h:37
float m_Bloom
Definition: LightEnv.h:46
float m_Brightness
Definition: LightEnv.h:46
RGBColor EvaluateUnitScaled(const CVector3D &normal) const
Calculate brightness of a point of a unit with the given normal vector, for rendering with CPU lighti...
Definition: LightEnv.h:65
RGBColor m_SunColor
Definition: LightEnv.h:39
float m_Rotation
Direction of sun on the compass, in radians.
Definition: LightEnv.h:114
float m_FogMax
Definition: LightEnv.h:44
float m_FogFactor
Definition: LightEnv.h:43
float GetRotation() const
Definition: LightEnv.h:51
float m_Elevation
Height of sun above the horizon, in radians.
Definition: LightEnv.h:106
float m_Contrast
Definition: LightEnv.h:46
CVector3D m_SunDir
Vector corresponding to m_Elevation and m_Rotation.
Definition: LightEnv.h:120
float m_Saturation
Definition: LightEnv.h:46
void SetRotation(float f)
Definition: LightEnv.cpp:44
RGBColor m_AmbientColor
Definition: LightEnv.h:40
void CalculateSunDirection()
Definition: LightEnv.cpp:50
float GetElevation() const
Definition: LightEnv.h:50
CLightEnv()
Definition: LightEnv.cpp:25
bool operator!=(const CLightEnv &o) const
Definition: LightEnv.h:92
void SetElevation(float f)
Definition: LightEnv.cpp:38
const CVector3D & GetSunDir() const
Definition: LightEnv.h:52
bool operator==(const CLightEnv &o) const
Definition: LightEnv.h:77
RGBColor m_FogColor
Definition: LightEnv.h:41
Definition: MapReader.h:47
Definition: MapWriter.h:39
Definition: Vector3D.h:31
float Dot(const CVector3D &vector) const
Definition: Vector3D.h:104
Definition: MapReader.cpp:462