2020-01-11 10:11:27 +00:00
|
|
|
use zerocopy::{AsBytes, FromBytes};
|
2019-12-01 01:42:27 +00:00
|
|
|
|
2020-04-06 23:15:59 +00:00
|
|
|
use bevy_derive::Uniforms;
|
2020-03-22 01:12:30 +00:00
|
|
|
|
2019-12-01 01:42:27 +00:00
|
|
|
#[repr(C)]
|
2020-03-22 01:12:30 +00:00
|
|
|
#[derive(Clone, Copy, AsBytes, FromBytes, Uniforms)]
|
2020-05-24 19:39:23 +00:00
|
|
|
#[module(bevy_render = "crate")]
|
2019-12-01 01:42:27 +00:00
|
|
|
pub struct Vertex {
|
2020-03-22 01:12:30 +00:00
|
|
|
#[uniform(vertex)]
|
2020-04-19 17:08:47 +00:00
|
|
|
pub position: [f32; 3],
|
2020-03-22 01:12:30 +00:00
|
|
|
#[uniform(vertex)]
|
2020-04-19 17:08:47 +00:00
|
|
|
pub normal: [f32; 3],
|
2020-03-22 01:12:30 +00:00
|
|
|
#[uniform(vertex)]
|
2020-01-14 01:35:30 +00:00
|
|
|
pub uv: [f32; 2],
|
2020-04-25 01:55:15 +00:00
|
|
|
}
|