Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. ....various draw calls NOT to FBO here
  2. batcher.end();
  3. fbo.begin();
  4. batcher.begin();
  5. // clipToMap();
  6. TextureRegion fboRegion = new TextureRegion(fbo.getColorBufferTexture(), 0, 0, 512, 512);
  7. fboRegion.flip(false, true);
  8. Gdx.gl.glClearColor(0f, 0f, 0f, 0f);
  9. Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  10. ....various draw calls to FBO here
  11. batcher.end();
  12. fbo.end();
  13. batcher.begin();
  14. drawRegion(fboRegion, 0, 0, false, 0, 1);
  15. ....various non FBO draw calls here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement