mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-06 08:44:09 +00:00
neo screen droplets
This commit is contained in:
parent
856e424c76
commit
02c7f8381b
21 changed files with 1072 additions and 8 deletions
|
@ -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;
|
||||
|
@ -419,6 +421,9 @@ Initialise3D(void *param)
|
|||
bool ret = CGame::InitialiseRenderWare();
|
||||
#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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue