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

graphics: Add Normal vertex attribute #779

Merged
merged 1 commit into from
Aug 10, 2024
Merged

graphics: Add Normal vertex attribute #779

merged 1 commit into from
Aug 10, 2024

Conversation

not-fl3
Copy link
Owner

@not-fl3 not-fl3 commented Aug 10, 2024

Also Remove VertexInterop thing for good.

People do ask for extra attributes quite often, and I do not thinkg that slightly larger memory footprint will hurt anyone too much.

#[derive(Clone, Debug, Copy)]
pub struct Vertex {
pub position: Vec3,
pub uv: Vec2,
pub color: Color,
pub color: [u8; 4],
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish we could use color: Vec4 or color: Color, it would be one extra general purpose attribute for custom shaders. Unfortunately all current shaders expect to receive color in 0..255 range and do this color / 255.0 thing. Lets wait with this for the next major version bump!

@not-fl3 not-fl3 merged commit f446e6a into master Aug 10, 2024
12 checks passed
@not-fl3 not-fl3 deleted the attributes_rework branch August 23, 2024 01:04
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.

1 participant