1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-05 22:02:38 +00:00

Enable radial blur post processing effect for spirit form.

Code for this existed, but it was wrong and never enabled.
This replaces most of the code, and makes it work on widescreen.
This commit is contained in:
fgenesis 2011-10-31 18:28:57 +01:00
commit 7039f1d2cc
5 changed files with 87 additions and 171 deletions

View file

@ -34,7 +34,7 @@ class PostProcessingFX
{
public:
PostProcessingFX();
void init(FXTypes type);
void init();
void update(float dt);
void preRender();
void render();
@ -42,20 +42,18 @@ public:
void enable(FXTypes type);
void disable(FXTypes type);
bool isEnabled(FXTypes type);
void setRenderLayerRange(int start, int end);
/// misc
// blur
Vector radialBlurColor;
#ifdef BBGE_BUILD_OPENGL
GLenum format;
#endif
int blurTimes;
/// misc
int renderLayer;
int layer;
float intensity;
int blendType;
protected:
int renderLayerStart, renderLayerEnd;
bool enabled[FXT_MAX];
};