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

Incorrect colors in Linear color space #4

Open
vanifatovvlad opened this issue Jan 22, 2024 · 2 comments
Open

Incorrect colors in Linear color space #4

vanifatovvlad opened this issue Jan 22, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@vanifatovvlad
Copy link

Describe the bug
If I specify a color through the color parameter of the Image, some colors are displayed incorrectly.
At the same time, the color looks correct if you specify it through the Button's color tint

To Reproduce
Steps to reproduce the behavior:

  1. Set rendering color space to Linear in ProjectSettings (for Gamma it looks correct)
  2. Create Image outside of CompositeCanvasRender
  3. Create Image inside CompositeCanvasRender
  4. Set color #885522 for both images
  5. See different colors

Expected behavior
The color must be the same

Screenshots
bug

Environment:

  • Version 1.0.0
  • Platform: Editor(Windows), Android
  • Unity version: 2022.3.11f1
  • Build options: IL2CPP, .Net Standard 2.1, Builtin-RP

Additional context
in my project this can be fixed by converting mesh colors to linear space, but I'm not sure if this works for all cases
fix

@vanifatovvlad vanifatovvlad added the bug Something isn't working label Jan 22, 2024
@mob-sakai
Copy link
Owner

Thank you for your reporting!

@mob-sakai
Copy link
Owner

mob-sakai commented Jan 29, 2024

@vanifatovvlad
Could you please attach a minimal project (included Assets, Packages and ProjectSettings directories) that reproduces the issue?

repos

@vizgl vizgl mentioned this issue May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants