Annotated code

This commit is contained in:
2023-11-26 19:02:27 -05:00
parent 8ab9be8056
commit eeae148fd5
11 changed files with 294 additions and 174 deletions
+1 -7
View File
@@ -2,11 +2,7 @@ use crate::state::run;
use error_iter::ErrorIter;
const EPSILON: f64 = 1e-6;
const INFINITY: f64 = f64::MAX;
const EPSILON_VECTOR: Vector3<f64> = Vector3::new(EPSILON, EPSILON, EPSILON);
static ZERO_VECTOR: Vector3<f64> = Vector3::new(0.0, 0.0, 0.0);
static ZERO_VECTOR_F32: Vector3<f32> = Vector3::new(0.0, 0.0, 0.0);
static UP_VECTOR_F32: Vector3<f32> = Vector3::new(0.0, 1.0, 0.0);
const INFINITY: f64 = 1e-10;
use log::error;
use std::env;
@@ -21,8 +17,6 @@ mod raytracer;
mod scene;
mod state;
use nalgebra::Vector3;
fn main() {
env_logger::init();