bevy_chair 0.9.1

Chair mesh asset loader plugin
Documentation
use chair::*;

/// Internal implementation of chair::Vertex that can store all data
/// Cannot be used with the mesh feature of chair as it does not implement attribs()
#[derive(Clone, Copy, Pod, Zeroable)]
#[repr(C)]
pub struct FatVertex {
	pub pos: [f32; 3],
	pub col: [f32; 4],
	pub normals: [f32; 3],
	pub uvs: [f32; 2]
}

impl Vertex for FatVertex {
	fn new(pos: [f32; 3], col: [f32; 4], normals: [f32; 3], uvs: [f32; 2]) -> Self {
		Self {
			pos,
			col,
			normals,
			uvs
		}
	}

	fn features() -> MeshFeatures {
		// All are optional since bevy meshes can be specialized
		features!()
	}
}