OK, this has already been fixed in the latest nightlies. Just update your project with them.
Libgdx's ScreenUtils.getFrameBufferTexture() gets only pixels from certain 3D models
-
15-06-2023 - |
Question
I'm trying to make a pause screen with the last frame of a 3D scene rendered to a texture, over which I would render a black rectangle with half alpha and some text. I thought that using ...
ScreenUtils.getFrameBufferTexture()
... was the easiest option, but models whose textures lack of this attribute ...
BlendingAttribute(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA)
... would not be rendered at all in the screenshot.
Example:
Why is this happening?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow