Bubba-3D  0.9.0
Awesome game engine!
Effects.h
1 /*
2  * This file is part of Bubba-3D.
3  *
4  * Bubba-3D is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * Bubba-3D is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with Bubba-3D. If not, see http://www.gnu.org/licenses/.
16  */
17 #pragma once
18 
19 #include "linmath/float3.h"
20 
21 namespace FOG_EQ {
22  enum fog_equation {
23  LINEAR = 0,
24  EXP = 1,
25  EXP2 = 2,
26  NONE = 3
27  };
28 };
29 
30 
31 struct Fog {
32  float fDensity;
33  float fStart;
34  float fEnd;
35  chag::float3 vColor;
36  FOG_EQ::fog_equation fEquation;
37 
38  Fog() {
39  fDensity = 0.001f;
40  fStart = 50.0f;
41  fEnd = 900.0f;
42  vColor = chag::make_vector(1.0f, 1.0f, 1.0f);
43  fEquation = FOG_EQ::NONE;
44  }
45 };
46 
47 struct Blur {
48  float cutOff;
49  bool active;
50 
51  Blur() {
52  cutOff = 1.0f;
53  active = true;
54  }
55 };
56 
57 
58 struct Effects {
59  Fog fog;
60  Blur blur;
61 };
Definition: Effects.h:31
Definition: Effects.h:47
Definition: Effects.h:21