GlobeEngine
SunExampleComposition.h
Go to the documentation of this file.
1 
8 #ifndef GlobeEngine_SunExampleComposition_h
9 #define GlobeEngine_SunExampleComposition_h
10 
11 #include "Composition.h"
12 
13 namespace geSunExample {
14 
16  {
17  public:
20 
21  void setHorizontalBlurStep(bool _in) {
22  if (_in){
23  this->horizontal = 1;
24  }else {
25  this->horizontal = 0;
26  }
27 
28  }
29  protected:
30  void drawFrame(std::shared_ptr<ge::Camera> _cam);
31 
32  private:
33  int horizontal; // horizontal vs. vertical
34  };
35 
37  {
38  public:
41 
42  void setLightPositionOnScreen(vmml::Vector2f _in) {
43  lightPositionOnScreen = _in;
44  }
45 
46  void setExposure(float _in) {
47  this->exposure = _in;
48  }
49 
50  void enableUIFbo() {
51  this->fboUIActive = true;
52  }
53 
54  void disableUIFbo(){
55  this->fboUIActive = false;
56  }
57 
58  bool isUIFboactive(){
59  return this->fboUIActive;
60  }
61 
62  protected:
63  void drawFrame(std::shared_ptr<ge::Camera> _cam);
64 
65  private:
66  bool fboUIActive;
67  float exposure;
68 
69  // Light shafts
70  vmml::Vector2f lightPositionOnScreen;
71  int numberOfSamples;
72  float exposurerays;
73  float decay;
74  float density;
75  float weight;
76  };
77 }
78 #endif
void disableUIFbo()
Definition: SunExampleComposition.h:54
void drawFrame(std::shared_ptr< ge::Camera > _cam)
Definition: SunExampleComposition.cpp:10
void setExposure(float _in)
Definition: SunExampleComposition.h:46
Definition: SunExampleComposition.h:13
SunExampleComposition()
Definition: SunExampleComposition.cpp:21
GaussianBlurComposition()
Definition: SunExampleComposition.h:18
void setLightPositionOnScreen(vmml::Vector2f _in)
Definition: SunExampleComposition.h:42
bool isUIFboactive()
Definition: SunExampleComposition.h:58
void enableUIFbo()
Definition: SunExampleComposition.h:50
Definition: SunExampleComposition.h:15
~GaussianBlurComposition()
Definition: SunExampleComposition.h:19
Definition: Composition.h:23
Definition: SunExampleComposition.h:36
~SunExampleComposition()
Definition: SunExampleComposition.h:40
void drawFrame(std::shared_ptr< ge::Camera > _cam)
Definition: SunExampleComposition.cpp:32
void setHorizontalBlurStep(bool _in)
Definition: SunExampleComposition.h:21