[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Linear-to-sRGB conversion to the drawing buffer using sRGB extension

It would be straightforward to expose EXT_pvrtc_sRGB via WebGL. Only Apple would be able to feasibly expose it -- since most of the hardware supporting it runs iOS, and Apple controls the browser and WebView there -- but if the conformance tests could be written, it may help motivate exposing it sooner rather than later. Pull requests welcome.


On Tue, Jul 18, 2017 at 3:56 PM, Christophe Riccio <christophe.riccio@unity3d.com> wrote:
iOS 7.0 devices, including PowerVR SGX 543 and 554 supports sRGB PVRTC throught EXT_pvrtc_sRGB  extensions.

I think, it would be very useful to have an equivalent WebGL extensions for people who wants to do WebGL rendering on iOS. 

I am not talking about Unity here, mobile WebGL is not quite something we think we can really target today.


On Tue, Jul 18, 2017 at 2:46 PM, Maksims Mihejevs <max@playcanvas.com> wrote:
iOS does support ETC by hardware and is exposed in WebGL only for 2.0.
PVRTC is still preferred for iOS, but ETC2 is a good improvement and offers more variety on storage.

PVRTC still not supporting SRGB.

When developers make apps for wide audience and platforms, compression is very important to meet low-loading times as well as fit enough data in limited VRAM on mobile.
If SRGB is used in workflow, then developer will be forced to use only SRGB compatible formats meaning some compression formats cannot be used. By ensuring there is bigger cover on SRGB will make it more of easy choice without sacrifices.


On 17 July 2017 at 19:21, Mark Callow <khronos@callow.im> wrote:

On Jul 17, 2017, at 10:17, Mr F <arthur@playcanvas.com> wrote:

PVRTC is the only compressed format that seems avalaible on iOS so far.

My OpenGL ES 3 app is happily using ETC2, including sRGB formats, on my iPad running iOS 10. My Vulkan/MoltenVK/Metal app is also happily using ASTC. Whether these formats are supported natively in the hardware and whether WebKit’s WebGl implementation supports the corresponding extensions, I do not know.