gloss_renderer/components/bundles.rs
1use gloss_hecs::Bundle;
2
3use super::{CamController, LightEmit, PosLookat, Projection};
4
5extern crate nalgebra as na;
6
7#[derive(Bundle, Default)]
8pub struct CamBundle {
9 pub pos_lookat: PosLookat,
10 pub projection: Projection,
11 pub controller: CamController,
12}
13
14#[derive(Bundle, Default)]
15pub struct SpotLightBundle {
16 pub pos_lookat: PosLookat,
17 pub projection: Projection,
18 pub light_emit: LightEmit,
19}