WebGL - reading pixel data from render buffer

前端 未结 3 2232
天涯浪人
天涯浪人 2020-12-14 23:08

Is there a way to get the raw pixel data from a WebGL render buffer or frame buffer that is off screen?

I\'m using WebGL to do some image processing, e.g. blurring a

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 23:24

    readPixels() should do what you want. Read more in the WebGL spec at http://www.khronos.org/registry/webgl/specs/latest/

提交回复
热议问题