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

@@ -1,12 +1,13 @@
use crate::ray::Ray;
use crate::{EPSILON, INFINITY};
use lazy_static::lazy_static;
use nalgebra::{distance, Matrix4, Point3, Vector3};
use roots::{find_roots_quadratic, Roots};
use std::fs::File;
use std::io::{BufRead, BufReader};
use std::path::Path;
use lazy_static::lazy_static;
lazy_static! {
static ref MAGENTA_MATERIAL: Material = Material::magenta();
}