From 101b455e51f9b702da5517cabe2c3b1086fcb2e7 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 14 Apr 2024 12:34:52 +0200 Subject: feat(engine): use ECS architecture --- engine/src/material.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/src/material.rs') diff --git a/engine/src/material.rs b/engine/src/material.rs index 5af3282..7d8c5db 100644 --- a/engine/src/material.rs +++ b/engine/src/material.rs @@ -1,6 +1,8 @@ +use ecs::Component; + use crate::texture::Id as TextureId; -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Component)] pub struct Material { ambient_map: TextureId, -- cgit v1.2.3-18-g5258