Add obj parsing
This commit is contained in:
parent
0a70fbd8d4
commit
556f50274d
13 changed files with 1004 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use ray_tracing_core::prelude::*;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct DefaultMaterial {}
|
||||
|
||||
impl<R: Rng> Material<R> for DefaultMaterial {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
use ray_tracing_core::prelude::*;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct DiffuseMaterial {
|
||||
pub(crate) albedo: Color,
|
||||
albedo: Color,
|
||||
}
|
||||
|
||||
impl DiffuseMaterial {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
use ray_tracing_core::prelude::*;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Mirror {
|
||||
color: Color,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue