- add post processing support to the software renderer and softpoly

This commit is contained in:
Magnus Norddahl 2018-08-04 14:58:55 +02:00
commit 48c83d36b5
4 changed files with 17 additions and 2 deletions

View file

@ -122,6 +122,13 @@ sector_t *SWSceneDrawer::RenderView(player_t *player)
auto map = swrenderer::CameraLight::Instance()->ShaderColormap();
screen->DrawTexture(fbtex.get(), 0, 0, DTA_SpecialColormap, map, TAG_DONE);
SWRenderer->DrawRemainingPlayerSprites();
screen->Draw2D();
screen->Clear2D();
screen->PostProcessScene(CM_DEFAULT, [&]() {
SWRenderer->DrawRemainingPlayerSprites();
screen->Draw2D();
screen->Clear2D();
});
return r_viewpoint.sector;
}