Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ....various draw calls NOT to FBO here
- batcher.end();
- fbo.begin();
- batcher.begin();
- // clipToMap();
- TextureRegion fboRegion = new TextureRegion(fbo.getColorBufferTexture(), 0, 0, 512, 512);
- fboRegion.flip(false, true);
- Gdx.gl.glClearColor(0f, 0f, 0f, 0f);
- Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
- ....various draw calls to FBO here
- batcher.end();
- fbo.end();
- batcher.begin();
- drawRegion(fboRegion, 0, 0, false, 0, 1);
- ....various non FBO draw calls here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement