refactor: moved Vertex to loader
This commit is contained in:
parent
76b30d6b0f
commit
4ff13640a7
|
@ -1,4 +1,20 @@
|
||||||
use lithium_utils::{Vector2, Vector3, Vertex};
|
use lithium_utils::{Vector2, Vector3};
|
||||||
|
|
||||||
|
pub struct Vertex {
|
||||||
|
position: Vector3,
|
||||||
|
uv: Vector2,
|
||||||
|
normal: Vector3,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Vertex {
|
||||||
|
pub fn new(position: Vector3, uv: Vector2, normal: Vector3) -> Self {
|
||||||
|
Self {
|
||||||
|
position,
|
||||||
|
uv,
|
||||||
|
normal,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub struct Model {
|
pub struct Model {
|
||||||
name: String,
|
name: String,
|
||||||
|
|
|
@ -36,19 +36,3 @@ impl Vector3 {
|
||||||
Self { x, y, z }
|
Self { x, y, z }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Vertex {
|
|
||||||
position: Vector3,
|
|
||||||
uv: Vector2,
|
|
||||||
normal: Vector3,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Vertex {
|
|
||||||
pub fn new(position: Vector3, uv: Vector2, normal: Vector3) -> Self {
|
|
||||||
Self {
|
|
||||||
position,
|
|
||||||
uv,
|
|
||||||
normal,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue