An unfinished raytracer/pathtracer/bidirectional pathtracer
Find a file
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
examples examples: add triangles scene 2020-03-19 18:27:07 +01:00
src library: render: scene: handle refraction cleanly 2020-03-23 16:49:55 +01:00
.gitignore project: add Cargo project files 2020-03-08 16:22:44 +01:00
.gitlab-ci.yml project: use non-nightly image by default in CI 2020-03-16 16:36:13 +01:00
.rustfmt.toml project: add default formatting configuration 2020-03-08 17:27:30 +01:00
Cargo.toml project: add indicatif dependency 2020-03-19 00:15:56 +01:00