Efficient way of reading depth values from depth buffer

前端 未结 2 1356
暗喜
暗喜 2021-02-09 14:54

For an algorithm of mine I need to be able to access the depth buffer. I have no problem at all doing this using glReadPixels, but reading an 800x600 window is extremely slow (F

2条回答
  •  太阳男子
    2021-02-09 15:16

    I would render to a FBO and read its depth buffer after the frame has been rendered. PBOs are outdated technology.

提交回复
热议问题