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

Convert linear vertex colors to sRGB when using compatibility renderer #103175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

machinescreen
Copy link

Fixes #87486

The Compatibility renderer currently assumes that all vertex colours are stored as sRGB and uses them as is. For files where the vertex colours are stored as linear (e.g. glTF) this means they appear much darker than intended. This PR adds a linear -> sRGB conversion when vertex_color_is_srgb is false and Compatibility is being used.

@AThousandShips AThousandShips added bug topic:rendering topic:3d cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release labels Feb 22, 2025
@AThousandShips AThousandShips added this to the 4.5 milestone Feb 22, 2025
@AThousandShips AThousandShips requested a review from a team February 22, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release topic:rendering topic:3d
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blender/GLTF vertex coloring is wrong with OpenGL Compatibility renderer.
2 participants