mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-20 19:57:45 +00:00
Make vertex members public, and repr(C)
This commit is contained in:
parent
ddda9bc598
commit
195726b1d0
1 changed files with 6 additions and 5 deletions
11
src/model.rs
11
src/model.rs
|
@ -290,13 +290,14 @@ struct VertexElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
|
#[repr(C)]
|
||||||
pub struct Vertex {
|
pub struct Vertex {
|
||||||
position : [f32; 3],
|
pub position : [f32; 3],
|
||||||
uv: [f32; 2],
|
pub uv: [f32; 2],
|
||||||
normal: [f32; 3],
|
pub normal: [f32; 3],
|
||||||
|
|
||||||
bone_weight: [f32; 4],
|
pub bone_weight: [f32; 4],
|
||||||
bone_id : [u8; 4]
|
pub bone_id : [u8; 4]
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Part {
|
pub struct Part {
|
||||||
|
|
Loading…
Add table
Reference in a new issue