SHARE
TWEET
Untitled
a guest
Oct 8th, 2015
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- fooBuffer.begin();
- Gdx.gl.glClearColor(1, 0, 1, 1);
- Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);
- barBatch.begin(camera);
- barBatch.render(instances.get(3));
- barBatch.end();
- // screenshot code here results in the expected alpha of the model
- fooBuffer.end();
- Texture texture = fooBuffer.getColorBufferTexture();
- edgeBuffer.begin();
- Gdx.gl.glClearColor(0, 1, 1, 1);
- Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);
- edgeBatch.begin();
- edgeBatch.draw(texture, 0, 0, 200, 200);
- edgeBatch.end();
- // screenshot code here results in a black screen
- edgeBuffer.end();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

