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

New mesh attribute: color #1194

Merged
merged 8 commits into from
Jan 3, 2021
Merged

New mesh attribute: color #1194

merged 8 commits into from
Jan 3, 2021

Conversation

msklywenn
Copy link
Contributor

@msklywenn msklywenn commented Jan 2, 2021

Hello,

This PR adds an "official" name for color vertex attributes "Vertex_Color" and adds Uchar4Norm to the VertexAttributeValues enum since colors are most of the time defined as 4x8-bits. It divides by 4 the memory requirements for vertex color without loosing precision (unless going for HDR vertex color but does anybody do that? ahah)

I expect vertex color to be essential for UI and special effects.

@cart
Copy link
Member

cart commented Jan 3, 2021

This seems like the right approach to me. Thanks!

@cart cart merged commit ca310b8 into bevyengine:master Jan 3, 2021
@DJMcNab
Copy link
Member

DJMcNab commented Jan 3, 2021

Should the custom_attributes example be updated based on this?

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.

3 participants