https://github.com/mrdoob/three.js/blob/master/src/renderers/WebGLRenderer.js#L1903
翻 three 的代码发现,readPixels 之前需要检查 frameBuffer 是否完成了
有大佬知道具体原因么?
1
no1xsyzy 2021-01-24 00:28:41 +08:00
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels#exceptions
A gl.INVALID_FRAMEBUFFER_OPERATION error is thrown if the currently bound framebuffer is not framebuffer complete. |