83515c60bf
Fix 'dyn' lint on trait objects.
2019-10-12 08:38:19 -07:00
0ec6f46be0
Finish up clippy lint.
2019-02-26 19:00:58 -08:00
c8f5bf9e19
cargo fix --edition and add edition="2018" to Cargo.toml.
2019-02-07 16:36:55 -08:00
66d599b50d
Fix all clippy warnings or block them.
2018-10-11 19:53:07 -07:00
36b2fba5b7
De-boxed many uses of Hit and Material.
...
Use of generic parameter directly where possible in structures instead
of Box'd values.
Added Material implementations for Box<Material> and Arc<Material> to
aid in the automatic conversion when necessary to use a Sized value for
Material.
Implement From trait for [f32;3] to Vec3 to make some APIs Into<Vec3>
which is a bit nicer to use.
2018-10-03 20:53:37 -07:00
a1d3cce4e4
Add ConstantTexture and use it for Lambertian material.
2018-09-22 19:53:27 -07:00
fecd7b6a00
Remove dead code.
2018-09-22 12:09:05 -07:00
02639e4d3f
Make BVH faster by doing hit test on bbox before descending.
2018-09-22 12:06:29 -07:00
2104f1a76c
Implement kd-tree.
...
Add simple test scene.
Failed attempt to make BVH faster.
Failed attempt to implement SAH w/ BVH.
Failed attempt to make AABB::hit faster.
2018-09-22 11:11:40 -07:00
aa26c79f6d
Add some faster AABB hit implementations.
...
Switch e?println to info/trace logging.
2018-09-18 17:48:27 -07:00
4a9754dfdb
bvh: add some tests and fmt::Display implementations.
2018-09-16 20:03:42 -07:00
11a7cc6f08
Implement AABB and BVH.
2018-09-16 18:59:27 -07:00