Refactor colors #6
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: canary/canary-rs#6
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As it stands, colors in both the
MeshVertex
and API arguments are given as four f32s. This is completely unnecessary, and has a negative impact on performance. f32s are slow to convert, and are relatively large, increasing the amount of data to copy.Instead, colors should always be represented as u32s, represented as RGBA8888.
More resource on HDR formats and different color spaces be needed in the future, but the future is not now.
Completed in
25e60c683b
.