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

Color Conversion in PBR Example #738

Merged
merged 2 commits into from
Apr 24, 2024
Merged

Color Conversion in PBR Example #738

merged 2 commits into from
Apr 24, 2024

Conversation

panxinmiao
Copy link
Contributor

I noticed that currently in the pygfx library, the values of Color are treated as being in the srgb color-space. When converting to the HSL or HSV color-spaces, the values need to be first converted to the linear-srgb space.

@panxinmiao panxinmiao requested a review from Korijn as a code owner April 24, 2024 06:06
@panxinmiao
Copy link
Contributor Author

Uh, I made a mistake. All I need to do is modify the color space in the example.

@panxinmiao panxinmiao changed the title Color Conversion Color Conversion in PBR Example Apr 24, 2024
@Korijn
Copy link
Collaborator

Korijn commented Apr 24, 2024

Uh, I made a mistake. All I need to do is modify the color space in the example.

I thought so too but you and Almar are more knowledgeable on this topic so I was hesitant to immediately approve 😅

@Korijn Korijn merged commit 87decd7 into pygfx:main Apr 24, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants