use crate::{light::Light, material::StandardMaterial}; use bevy_asset::Handle; use bevy_render::{mesh::Mesh, Renderable}; use bevy_transform::prelude::{LocalToWorld, Rotation, Scale, Translation}; use bevy_derive::EntityArchetype; #[derive(EntityArchetype, Default)] #[module(meta = false)] pub struct MeshEntity { // #[tag] pub mesh: Handle, // #[tag] pub material: Handle, pub renderable: Renderable, pub local_to_world: LocalToWorld, pub translation: Translation, pub rotation: Rotation, pub scale: Scale, } #[derive(EntityArchetype, Default)] #[module(meta = false)] pub struct LightEntity { pub light: Light, pub local_to_world: LocalToWorld, pub translation: Translation, pub rotation: Rotation, }