neo screen droplets

This commit is contained in:
aap
2020-11-19 19:07:32 +01:00
parent 8963cbcb7c
commit 07fe099b4e
21 changed files with 1034 additions and 8 deletions

View File

@ -375,6 +375,14 @@ CPostFX::NeedFrontBuffer(int32 type)
return false;
}
void
CPostFX::GetBackBuffer(RwCamera *cam)
{
RwRasterPushContext(pBackBuffer);
RwRasterRenderFast(RwCameraGetRaster(cam), 0, 0);
RwRasterPopContext();
}
void
CPostFX::Render(RwCamera *cam, uint32 red, uint32 green, uint32 blue, uint32 blur, int32 type, uint32 bluralpha)
{
@ -391,11 +399,8 @@ CPostFX::Render(RwCamera *cam, uint32 red, uint32 green, uint32 blue, uint32 blu
blur = AvgAlpha;
}
if(NeedBackBuffer()){
RwRasterPushContext(pBackBuffer);
RwRasterRenderFast(RwCameraGetRaster(cam), 0, 0);
RwRasterPopContext();
}
if(NeedBackBuffer())
GetBackBuffer(cam);
DefinedState();