neo screen droplets

This commit is contained in:
aap
2020-11-19 16:23:52 +01:00
parent 856e424c76
commit 02c7f8381b
21 changed files with 1072 additions and 8 deletions
+10 -5
View File
@@ -363,6 +363,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)
{
@@ -405,11 +413,8 @@ CPostFX::Render(RwCamera *cam, uint32 red, uint32 green, uint32 blue, uint32 blu
assert(pFrontBuffer);
assert(pBackBuffer);
if(NeedBackBuffer()){
RwRasterPushContext(pBackBuffer);
RwRasterRenderFast(RwCameraGetRaster(cam), 0, 0);
RwRasterPopContext();
}
if(NeedBackBuffer())
GetBackBuffer(cam);
DefinedState();