6 #include "VectorMath.h"
16 float FogDensityGlobal;
17 float HeightFogIntensity;
18 float DistanceFogIntensity;
20 float HeightFogMinAltitude;
21 float HeightFogMaxAltitude;
22 float DistanceFogNear;
25 float DistanceFogHigh;
36 void SetFogColour(
const Eegeo::v4& fogColour) { m_fogColour = fogColour; }
37 void SetHeightFogAltitudes(
float minAltitude,
float maxAltitude) { m_heightFogMinAltitude = minAltitude; m_heightFogMaxAltitude = maxAltitude; }
38 void SetDistanceFogDistances(
float nearFog,
float farFog) { m_distanceFogNear = nearFog; m_distanceFogFar = farFog; }
39 void SetDistanceFogAltitudes(
float low,
float high) { m_distanceFogLow = low; m_distanceFogHigh = high; }
40 void SetCameraPositionEcef(
const Eegeo::dv3& cameraPositionEcef) { m_cameraPositionEcef = cameraPositionEcef; }
41 void SetFogDensity(
float fogDensity) { m_fogDensity = fogDensity; }
42 void SetHeightFogIntensity(
float heightFogIntensity) { m_heightFogIntensity = heightFogIntensity; }
43 void SetDistanceFogIntensity(
float distanceFogIntensity) { m_distanceFogInstensity = distanceFogIntensity; }
44 void SetBaseAltitude(
float baseAltitude) { m_baseAltitude = baseAltitude; }
48 bool IsEnabled()
const {
return m_fogDensity > 0.f;}
53 float m_heightFogMinAltitude;
54 float m_heightFogMaxAltitude;
55 float m_distanceFogNear;
56 float m_distanceFogFar;
57 float m_distanceFogLow;
58 float m_distanceFogHigh;
60 float m_heightFogIntensity;
61 float m_distanceFogInstensity;