14 lines
287 B
Rust
14 lines
287 B
Rust
use crate::camera::Camera;
|
|
use crate::light::Light;
|
|
use crate::primitive::Primitive;
|
|
use nalgebra::Vector3;
|
|
|
|
pub struct Scene<'a> {
|
|
pub primitives: Vec<Box<dyn Primitive<'a>>>,
|
|
lights: Vec<Light>,
|
|
camera: Camera,
|
|
pub ambient_light: Vector3<f32>,
|
|
}
|
|
|
|
impl<'a> Scene<'a> {}
|