Move Material to new module && TriangleBVH intersect && Seperate light and material
This commit is contained in:
parent
50d3874467
commit
b3fdef8837
18 changed files with 180 additions and 90 deletions
|
|
@ -39,9 +39,9 @@ fn main() -> ImageResult<()> {
|
|||
let s = cornel();
|
||||
|
||||
let c = BasicCamera::new(
|
||||
640,
|
||||
400,
|
||||
Pos3::new(-10.0, 0.0, 0.0),
|
||||
400,
|
||||
Pos3::new(-6.0, 0.0, 0.0),
|
||||
Dir3::new(1.0, 0.0, 0.0),
|
||||
Dir3::up(),
|
||||
Float::to_radians(90.0),
|
||||
|
|
@ -49,5 +49,5 @@ fn main() -> ImageResult<()> {
|
|||
|
||||
let r = PathTracer::new(s, c);
|
||||
|
||||
render_image(r, "test.exr", 1024)
|
||||
render_image(r, "test.exr", 1048)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue