2022-02-02 03:28:56 +00:00
|
|
|
use super::handle::*;
|
|
|
|
|
|
|
|
#[derive(Copy, Clone, PartialEq)]
|
|
|
|
pub struct MeshInstance {
|
|
|
|
pub mesh: MeshHandle,
|
2022-02-02 23:08:53 +00:00
|
|
|
pub material: MaterialHandle,
|
2022-02-02 03:28:56 +00:00
|
|
|
pub transform: glam::Mat4,
|
|
|
|
}
|
2022-02-02 06:36:48 +00:00
|
|
|
|
|
|
|
#[derive(Copy, Clone, PartialEq)]
|
|
|
|
pub struct PointLight {
|
|
|
|
pub center: glam::Vec3A,
|
|
|
|
pub intensity: glam::Vec3A,
|
|
|
|
}
|
2022-02-13 04:57:07 +00:00
|
|
|
|
|
|
|
#[derive(Copy, Clone, PartialEq)]
|
|
|
|
pub struct Scene<'a> {
|
|
|
|
pub meshes: &'a [MeshInstance],
|
|
|
|
pub point_lights: &'a [PointLight],
|
|
|
|
}
|