Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
Minecraft.getMinecraft().getFramebuffer().bindFramebufferTexture() @SubscribeEvent
public void renderHUD(RenderGameOverlayEvent.Post e){
glPushMatrix();
ScaledResolution res = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight);
Tessellator tes = Tessellator.instance;
glColor4f(1, 1, 1, 1);
Minecraft.getMinecraft().getFramebuffer().bindFramebufferTexture();
ModShaders.blackWhite.start();
tes.startDrawingQuads();
tes.addVertexWithUV(0, res.getScaledHeight(), 0, 0, 1);
tes.addVertexWithUV(res.getScaledWidth(), res.getScaledHeight(), 0, 1, 1);
tes.addVertexWithUV(res.getScaledWidth(), 0, 0, 1, 0);
tes.addVertexWithUV(0, 0, 0, 0, 0);
tes.draw();
ModShaders.blackWhite.stop();
glPopMatrix();
}

Использовать для глубины не рендер буфер, а текстуру, например.
GL30.glBindFramebuffer(GL_READ_FRAMEBUFFER, sourceFbo.id)
GL30.glBindFramebuffer(GL_WRITE_FRAMEBUFFER, targetFbo.id)
GL30.glBlitFramebuffer(0, 0, width, height, 0, 0, width, height, GL_DEPTH_BUFFER_BIT, GL_NEAREST)