The complete list of promoted extensions in WebGL2

拈花ヽ惹草 提交于 2019-12-01 15:01:31

WebGL2 requires support for half and floating point textures. It also requires filtering for half textures but it does not require support for filtered floating point textures.

That's why OES_texture_half_float_linear missing and OES_texture_float_linear is optional. Most mobile devices do not support filtering for floating point textures.

In other words you should add OES_texture_half_float_linear to your list of promoted extensions.

Another extension that has a strange history is EXT_color_buffer_float. WebGL1 shipped without it. It was assumed to render to a floating point texture all you needed was first OES_texture_float and then make a floating point texture, attach it to a framebuffer and check gl.checkFramebufferStatus. But, a year or so after WebGL shipped someone pointed out that was not enough and so EXT_color_buffer_float was added but it was not enforced because doing so would have broke pages.

In WebGL2 it is enforced. You can not render to a floating point texture without enabling EXT_color_buffer_float. Same for EXT_color_buffer_half_float.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!