WebGL Read pixels from floating point render target

前端 未结 3 1286
没有蜡笔的小新
没有蜡笔的小新 2020-12-01 07:09

There is some confusion e.g. in terms of support levels for rendering to floating point textures in WebGL. The OES_texture_float extension does not seem to mandate

3条回答
  •  执笔经年
    2020-12-01 07:48

    The readPixels is limited to the RGBA format and the UNSIGNED_BYTE type (WebGL specification). However there are some methods for "packing" floats into RGBA/UNSIGNED_BYTE described here:

    http://concord-consortium.github.io/lab/experiments/webgl-gpgpu/webgl.html

提交回复
热议问题