DiligentCore icon indicating copy to clipboard operation
DiligentCore copied to clipboard

WebGL: sRGB swapchain

Open MikhailGorobets opened this issue 1 year ago • 2 comments

Currently, we are facing issues with tutorials when running them in the browser on the WebGL backend due to the absence of conversion to the sRGB space. It might be better to emulate sRGB directly in the SwapChain if the user creates it with an sRGB format. To achieve this, we could add a FullQuad pass during the Present call, where the corresponding transformation would be performed

MikhailGorobets avatar Aug 02 '24 13:08 MikhailGorobets

This will require extra full-screen pass, which may not be desirable, especially on high-resolution displays.

TheMostDiligent avatar Aug 02 '24 15:08 TheMostDiligent

This should be inexpensive compared to our post-processing passes

MikhailGorobets avatar Aug 02 '24 15:08 MikhailGorobets