2020-01-11 10:11:27 +00:00
|
|
|
use zerocopy::{AsBytes, FromBytes};
|
2019-12-01 01:42:27 +00:00
|
|
|
|
2020-04-06 03:19:02 +00:00
|
|
|
use bevy_asset;
|
2020-04-06 23:15:59 +00:00
|
|
|
use bevy_core;
|
|
|
|
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-04-06 21:20:53 +00:00
|
|
|
#[module(meta = false, 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-19 17:08:47 +00:00
|
|
|
}
|