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

[Feature request]: sRGB support in sokol_gfx.h #562

Open
floooh opened this issue Sep 20, 2021 · 3 comments
Open

[Feature request]: sRGB support in sokol_gfx.h #562

floooh opened this issue Sep 20, 2021 · 3 comments

Comments

@floooh
Copy link
Owner

floooh commented Sep 20, 2021

sokol_gfx.h should expose the hardware sRGB features to perform sRGB-to-linear conversion when sampling textures and back to sRGB in framebuffers (two separate things)

See: https://twitter.com/tumult/status/1439897518297411591

...probably needs to be behind feature-flags because of WebGL/GLES2.

@floooh floooh self-assigned this Sep 20, 2021
@OkanArikan
Copy link

Are you planning to maintain WebGL/GLES2 support? With the latest Safari, WebGL2 seems widely available now.

@floooh
Copy link
Owner Author

floooh commented Jan 26, 2023

@OkanArikan I think we can drop WebGL1/GLES2 now, but I haven't yet made plans when exactly this will happen (some time this year with the WebGPU backend would probably be a good time).

@floooh
Copy link
Owner Author

floooh commented Jan 26, 2023

PS: some more digging regarding SRGB framebuffers:

#758 (comment)

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

No branches or pull requests

2 participants