amethyst / amethyst/bracket-lib

Possible SRGB/gamma issue with wgpu?

Open
#331 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.7k
Forks
126
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/22974533/215156171-91a084ee-4492-402f-9f48-bdb7cdeea972.png) | ![image](https://user-images.githubusercontent.com/22974533/215156195-4245eddd-c252-47b5-b552-5eae15a69ab7.png) |
| ![image](https://user-images.githubusercontent.com/22974533/215156524-80a7a071-b45e-43df-ba24-c0501fa9503c.png) | ![image](https://user-images.githubusercontent.com/22974533/215156456-4cfe0364-75d1-47ac-96e7-94c055cd3947.png) |

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.