Added scene editor

This commit is contained in:
STP
2023-11-26 20:49:09 -05:00
parent eeae148fd5
commit e48bc02daa
9 changed files with 133 additions and 95 deletions

View File

@@ -9,7 +9,7 @@ pub struct Light {
}
impl Light {
pub fn new(position: Point3<f64>, colour: Vector3<f64>, falloff: Vector3<f64>) -> Self {
pub fn new(position: Point3<f64>, colour: Vector3<f64>, falloff: Vector3<f64>) -> Light {
let colour = colour.cast();
let falloff = falloff.cast();
Light {
@@ -19,7 +19,7 @@ impl Light {
ambient: false,
}
}
pub fn ambient(colour: Vector3<f64>) -> Self {
pub fn ambient(colour: Vector3<f64>) -> Light {
Light {
position: Point3::new(0.0, 0.0, 0.0),
colour: colour.cast(),