bracket-lib icon indicating copy to clipboard operation
bracket-lib copied to clipboard

Possible SRGB/gamma issue with wgpu?

Open carlfindahl opened this issue 2 years ago • 2 comments

When using wgpu as my rendering backend I get way better frame rates and input latency, however the filtering and the colors look off. When comparing to the native OpenGL renderer it seems like both filtering and (gamma) color processing might differ:

WGPU DEFAULT
image image
image image

It is more obvious with colors that are not fully saturated, but also really dark colors seems to have a weird gamma curve in wgpu, making everything a lot brighter. If possible, I think this should be looked into so we can have similar looking images using both backends.

System: Win 10 RTX 3080 AMD Ryzen

carlfindahl avatar Jan 27 '23 17:01 carlfindahl

This might just be an issue with picking the right surface format. The current format is whatever happens to be reported first, which may not be sRGB.

svercl avatar Jan 31 '23 02:01 svercl

When I rolled back to the latest release from master the issue disappeared so must be something new since the previous release.

carlfindahl avatar Mar 02 '23 06:03 carlfindahl