pathtracer/src
Bruno BELANYI 70c0e0cdf3 library: render: scene: handle refraction cleanly
The refraction information was incorrect in the previous implementation.
We never updated the medium information when going out of a transparent
material. It is now handled using a small structure holding both the old
index, and new_index.

We can now handle any number of successive medium changes, with the
associated change of indices correctly.

This implementation assumes that any ray going into an object is going
to come out in the same medium that it was originally travelling in
before entering said object. This is an acceptable approximation to me.
2020-03-23 16:49:55 +01:00
..
core library: document core module 2020-03-22 00:14:25 +01:00
light library: light: do not expose sub-modules 2020-03-23 12:44:17 +01:00
material library: material: do not expose sub-modules 2020-03-23 12:44:17 +01:00
render library: render: scene: handle refraction cleanly 2020-03-23 16:49:55 +01:00
serialize library: document serialize module 2020-03-23 12:42:36 +01:00
shape library: shape: do not expose sub-modules 2020-03-23 12:44:17 +01:00
texture library: texture: do not expose sub-modules 2020-03-23 12:44:17 +01:00
lib.rs library: document root module 2020-03-23 12:44:17 +01:00
main.rs executable: add scene parsing and rendering 2020-03-18 16:32:55 +01:00