-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Wrong background color with the same ClearColor
on some machines
#5809
Comments
What operating system, and if Linux what display server, and what driver? |
OS: Linux |
That game has a lighting system, so it's the lack of a campfire causing the issue :) |
I see. Thought as much. Worked fine in another game I'm just playing around trying to get to grips with Bevy. Thanks. |
Having the exact same issue here, only the background color is wrong. I'm also using Linux, using an Intel graphics card with a Mesa driver. I have a dedicated NVIDIA graphics card (I have a gaming laptop) on the same machine and it doesn't have the issue Luckily, I've found a workaround: putting This really seems to be sRGB conversion problem, converting the correct color to linear RGB (used this site to convert) gets it back to the wrong color that I was experiencing. Seems to be related to gfx-rs/wgpu#1627, they seem to also have a couple of other similar issues. @benfrankel could you try the workaround and say if it worked? |
I have the same issue on my machine (also Intel iGPU with Mesa driver, running X11 on Alpine Linux, bevy v0.9.1) |
I found out that enabling the App::new()
// ...
.insert_resource(ClearColor(Color::rgb(0.1, 0.1, 0.1)))
.insert_resource(Msaa { samples: 1 } )
// ... Without MSAA and without With MSAA and without Without MSAA and with I'm not sure what to make off of this information, but could help going towards the right direction. |
Bevy version
0.8.1
Relevant system information
What you did
What went wrong
#7f7f7f
as the background color.#373737
as the background color.Additional information
Notably,
0x37 == 55 == (0.5.powf(2.2) * 255).round()
, so this issue might have something to do with gamma conversion.On my other machine I see the correct background color
#7f7f7f
. Other machine's GPU:EDIT: Also notable that sprite colors manifest correctly on both machines. It's just the background color that's wrong.
The text was updated successfully, but these errors were encountered: