wip fbo refactor

pull/7/head
hYdos 2020-02-25 17:06:23 +10:00
parent 338d6c02bc
commit a64ba98e51
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public class Ginger
masterRenderer.renderScene(game.data.entities, game.data.normalMapEntities, game.data.flatTerrains, game.data.lights, game.data.camera, game.data.clippingPlane);
ParticleMaster.renderParticles(game.data.camera);
contrastFbo.unbindFBO();
PostProcessing.doPostProcessing(contrastFbo.colorTexture);
contrastFbo.handler.render(contrastFbo.colorTexture);
if (game.data.handleGuis)
{ renderOverlays(game); }
}

View File

@ -20,7 +20,7 @@ public class Fbo
boolean destroyed;
Object lock = new Object();
/* cool ginger feature which handles fbos once they need to be rendered */
FboCallbackHandler handler;
public FboCallbackHandler handler;
/* Multisampled FBO objects */
public int multisampledColorRenderBuffer;
int multisampledDepthRenderBuffer;