Reading current framebuffer

后端 未结 2 360
萌比男神i
萌比男神i 2021-01-21 01:53

Is there a way to read fragment from the framebuffer currently rendered?

So, I\'m looking for a way to read color information from the fragment that\'s on the place that

2条回答
  •  [愿得一人]
    2021-01-21 02:33

    With most nVidia hardware you can use the GL_NV_texture_barrier extension to read from a texture that's currently bound to a framebuffer. But bear in mind that you won't be able to read data any more recent than produced in the previous draw call

提交回复
热议问题