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

Grayscale images has unexpected gamma #1990

Closed
emilk opened this issue Apr 27, 2023 · 0 comments · Fixed by #2014
Closed

Grayscale images has unexpected gamma #1990

emilk opened this issue Apr 27, 2023 · 0 comments · Fixed by #2014
Assignees
Labels
🪳 bug Something isn't working 🔺 re_renderer affects re_renderer itself 🦟 regression A thing that used to work in an earlier release

Comments

@emilk
Copy link
Member

emilk commented Apr 27, 2023

We currently assume that all grayscale images are in linear space, which is a bad assumption. We should assume sRGB for u8 grayscale images.

Unfortunately there is no R8UnormSrgb texture format, so we need to handle this in the shader.

@emilk emilk added 🪳 bug Something isn't working 🔺 re_renderer affects re_renderer itself 🦟 regression A thing that used to work in an earlier release labels Apr 27, 2023
@emilk emilk self-assigned this May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 🔺 re_renderer affects re_renderer itself 🦟 regression A thing that used to work in an earlier release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant