Simple normal map implementation

This commit is contained in:
2020-10-26 18:15:39 +01:00
parent 9687f5ec89
commit 38ea41b550
6 changed files with 56 additions and 24 deletions

View File

@@ -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 {