Add obj parsing

This commit is contained in:
hal8174 2024-10-02 23:43:13 +02:00
parent 0a70fbd8d4
commit 556f50274d
13 changed files with 1004 additions and 3 deletions

View file

@ -1,5 +1,6 @@
use ray_tracing_core::prelude::*;
#[derive(Debug)]
pub struct DefaultMaterial {}
impl<R: Rng> Material<R> for DefaultMaterial {

View file

@ -1,7 +1,8 @@
use ray_tracing_core::prelude::*;
#[derive(Debug)]
pub struct DiffuseMaterial {
pub(crate) albedo: Color,
albedo: Color,
}
impl DiffuseMaterial {

View file

@ -1,5 +1,6 @@
use ray_tracing_core::prelude::*;
#[derive(Debug)]
pub struct Mirror {
color: Color,
}