summaryrefslogtreecommitdiffstats
path: root/src/core/main.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-11-19 16:23:52 +0100
committeraap <aap@papnet.eu>2020-11-19 16:23:52 +0100
commit02c7f8381b81732645ed92fda0c5a66d0f1db265 (patch)
treed87d414e03af11fdaae5f197378a1906833edbab /src/core/main.cpp
parentMerge branch 'master' of github.com:GTAmodding/re3 (diff)
downloadre3-02c7f8381b81732645ed92fda0c5a66d0f1db265.tar
re3-02c7f8381b81732645ed92fda0c5a66d0f1db265.tar.gz
re3-02c7f8381b81732645ed92fda0c5a66d0f1db265.tar.bz2
re3-02c7f8381b81732645ed92fda0c5a66d0f1db265.tar.lz
re3-02c7f8381b81732645ed92fda0c5a66d0f1db265.tar.xz
re3-02c7f8381b81732645ed92fda0c5a66d0f1db265.tar.zst
re3-02c7f8381b81732645ed92fda0c5a66d0f1db265.zip
Diffstat (limited to '')
-rw-r--r--src/core/main.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/core/main.cpp b/src/core/main.cpp
index 157776e0..843f0671 100644
--- a/src/core/main.cpp
+++ b/src/core/main.cpp
@@ -63,7 +63,9 @@
#include "SceneEdit.h"
#include "debugmenu.h"
#include "Clock.h"
+#include "postfx.h"
#include "custompipes.h"
+#include "screendroplets.h"
#include "frontendoption.h"
GlobalScene Scene;
@@ -420,6 +422,9 @@ Initialise3D(void *param)
#ifdef EXTENDED_PIPELINES
CustomPipes::CustomPipeInit(); // need Scene.world for this
#endif
+#ifdef SCREEN_DROPLETS
+ ScreenDroplets::InitDraw();
+#endif
return ret;
}
@@ -429,6 +434,9 @@ Initialise3D(void *param)
static void
Terminate3D(void)
{
+#ifdef SCREEN_DROPLETS
+ ScreenDroplets::Shutdown();
+#endif
#ifdef EXTENDED_PIPELINES
CustomPipes::CustomPipeShutdown();
#endif
@@ -1142,10 +1150,17 @@ Idle(void *arg)
RenderDebugShit();
RenderEffects();
- tbStartTimer(0, "RenderMotionBlur");
if((TheCamera.m_BlurType == MOTION_BLUR_NONE || TheCamera.m_BlurType == MOTION_BLUR_LIGHT_SCENE) &&
TheCamera.m_ScreenReductionPercentage > 0.0f)
TheCamera.SetMotionBlurAlpha(150);
+
+#ifdef SCREEN_DROPLETS
+ CPostFX::GetBackBuffer(Scene.camera);
+ ScreenDroplets::Process();
+ ScreenDroplets::Render();
+#endif
+
+ tbStartTimer(0, "RenderMotionBlur");
TheCamera.RenderMotionBlur();
tbEndTimer("RenderMotionBlur");