Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGL: sRGB swapchain #593

Open
MikhailGorobets opened this issue Aug 2, 2024 · 2 comments
Open

WebGL: sRGB swapchain #593

MikhailGorobets opened this issue Aug 2, 2024 · 2 comments

Comments

@MikhailGorobets
Copy link
Contributor

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

@TheMostDiligent
Copy link
Contributor

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

@MikhailGorobets
Copy link
Contributor Author

This should be inexpensive compared to our post-processing passes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants