Added phong shading

This commit is contained in:
STP
2023-11-13 01:26:59 -05:00
parent 2c65a48cb2
commit 2e69164dde
3 changed files with 58 additions and 9 deletions

View File

@@ -5,8 +5,8 @@ use nalgebra::Vector3;
pub struct Scene<'a> {
pub primitives: Vec<Box<dyn Primitive<'a>>>,
lights: Vec<Light>,
camera: Camera,
pub lights: Vec<Light>,
pub cameras: Vec<Camera>,
pub ambient_light: Vector3<f32>,
}