Commit graph

7 commits

Author SHA1 Message Date
Bruno BELANYI
ca21cf06c2 library: render: scene: use BVH 2020-03-18 18:20:46 +01:00
Bruno BELANYI
eca5ec5c26 library: render: scene: deserialize w/ indirection 2020-03-18 18:20:20 +01:00
Bruno BELANYI
a8d23782a4 library: render: scene: add deserialization 2020-03-18 15:53:33 +01:00
Bruno BELANYI
c8ca438091 library: core: scene: derive Debug and PartialEq 2020-03-18 15:53:25 +01:00
Bruno BELANYI
05fb6601b2 library: use enum_dispatch on Object related trait
This allows for easier testing (notable allowing for comparisons),
better performance (thanks to inlining instead of vtable indirection),
and should ease the deserialization of `Material`, `Shape`, and
`Texture` traits. This should allow `Object` to be deserialized easily.
2020-03-18 15:24:09 +01:00
Bruno BELANYI
3386617c69 library: render: scene: add reflection
This required changing the place were the normal, the texel projection,
and the reflection were calculated to avoid possibly expensive lookups.

I also changed the style a bit to make it more readable.
2020-03-18 00:17:03 +01:00
Bruno BELANYI
6a829a96fd library: render: add Scene implementation 2020-03-18 00:08:23 +01:00