Commit graph

5 commits

Author SHA1 Message Date
Bruno BELANYI 27ac0ffe9f examples: add triangles scene
This scene showcases a transparent sphere.
2020-03-19 18:27:07 +01:00
Bruno BELANYI 552c0cb966 library: implement refraction
This necessitated to rework how light properties for a material were
given. A material can have either reflectivity or transparency. This
changes the parsing of materials, using a `LightProperty` structure at
its core.

This is does not implement the true Fresnel equations to take into
account the amount of reflection that an incident goes through when
encountering a transparent object.
2020-03-19 18:23:20 +01:00
Bruno BELANYI 00de0bf118 examples: colorful: use & annotate optional fields 2020-03-19 13:11:06 +01:00
Bruno BELANYI 09af312b86 examples: add colorful scene
This scene shows-off how to declare every type of lights, and results in
a pretty and colorful scene.
2020-03-18 18:06:13 +01:00
Bruno BELANYI bfa9aa22dc examples: add example YAML scene 2020-03-18 15:52:41 +01:00