refactor: moved Vertex to loader

This commit is contained in:
antifallobst 2023-11-30 17:30:53 +01:00
parent 76b30d6b0f
commit 4ff13640a7
Signed by: antifallobst
GPG Key ID: 2B4F402172791BAF
2 changed files with 17 additions and 17 deletions

View File

@ -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 {
name: String,

View File

@ -36,19 +36,3 @@ impl Vector3 {
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,
}
}
}