-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEffects.h
55 lines (41 loc) · 996 Bytes
/
Effects.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef EFFECTS_H
#define EFFECTS_H
#include "Singleton.h"
#include "Texture2D.h"
#include "FrameBufferObject.h"
#define FBO_BLOOM_SAMPLES 1
SINGLETON_BEGIN( Effects )
public:
// Rendusur l'ecran
FrameBufferObject fboScreen;
FrameBufferObject fboDepth;
// Profondeur de champ
FrameBufferObject fboDepthScreen;
FrameBufferObject fboDepthScreenTemp;
// Anaglyph
FrameBufferObject fboAnaglyph[2];
// Bloom
FrameBufferObject fboBloomFinal;
FrameBufferObject fboBloomFinalTemp;
// Effets Vignette
Texture2D* m_pVignette;
// Bruit et pellicule
Texture2D* m_pBruit;
//Texture2D* m_pBruit2;
float randomCoeffNoise;
float randomCoeffFlash;
float m_fT;
float m_fPeriod;
private:
void displaySceneWithoutAnaglyph(void);
void displaySceneWithAnaglyph(void);
void GenerateBloomTexture();
void GenerateDepthBlurTexture();
public:
void init();
void idle();
void Render();
void reshapeFBO(int newwidth , int newheight);
void DrawQuadAtScreen();
SINGLETON_END()
#endif