Simple normal map implementation
This commit is contained in:
@@ -30,8 +30,8 @@ use winit::window::{Window, WindowBuilder};
|
||||
use line_vs::ty::LinePushConstants;
|
||||
use vs::ty::PushConstants;
|
||||
|
||||
use crate::mesh::CPUMesh;
|
||||
use crate::gameobject::{GameObject, GameObjectHandle};
|
||||
use crate::mesh::CPUMesh;
|
||||
|
||||
const VALIDATION_LAYERS: &[&str] = &[
|
||||
];
|
||||
@@ -41,10 +41,11 @@ pub struct Vertex {
|
||||
pub position: [f32; 3],
|
||||
pub uv: [f32; 2],
|
||||
pub normal: [f32; 3],
|
||||
pub tangent: [f32; 4],
|
||||
pub bone_index: [i32; 4],
|
||||
pub bone_weight: [f32; 4],
|
||||
}
|
||||
vulkano::impl_vertex!(Vertex, position, uv, normal, bone_index, bone_weight);
|
||||
vulkano::impl_vertex!(Vertex, position, uv, normal, tangent, bone_index, bone_weight);
|
||||
|
||||
#[derive(Default, Debug, Clone)]
|
||||
pub struct LinePoint {
|
||||
|
||||
Reference in New Issue
Block a user