Skip to content

Commit

Permalink
Allow passing glam vector types as vertex attributes (bevyengine#6442)
Browse files Browse the repository at this point in the history
Allow passing `Vec`s of glam vector types as vertex attributes.
Alternative to bevyengine#4548 and bevyengine#2719

Also used some macros to cut down on all the repetition.

# Migration Guide
Implementations of `From<Vec<[u16; 4]>>` and `From<Vec<[u8; 4]>>` for `VertexAttributeValues` have been removed.
I you're passing either `Vec<[u16; 4]>` or `Vec<[u8; 4]>` into `Mesh::insert_attribute` it will now require wrapping it with right the `VertexAttributeValues` enum variant. 

Co-authored-by: devil-ira <[email protected]>
  • Loading branch information
2 people authored and ItsDoot committed Feb 1, 2023
1 parent 6e6b9a8 commit bbd81db
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 322 deletions.
Loading

0 comments on commit bbd81db

Please sign in to comment.