Commit graph

19 commits

Author SHA1 Message Date
Bruno BELANYI a4caa456ce library: core: add Film implementation 2020-03-17 19:17:52 +01:00
Bruno BELANYI 8d6d4cf7d7 library: shape: add Triangle implementation 2020-03-16 22:22:13 +01:00
Bruno BELANYI 2088877bd2 library: light: add SpotLight implementation 2020-03-16 18:35:32 +01:00
Bruno BELANYI 3a487d956e library: light: add AmbientLight implementation 2020-03-16 17:54:44 +01:00
Bruno BELANYI d759c16f5d library: light: add DirectionalLight implementation 2020-03-16 17:52:33 +01:00
Bruno BELANYI 22167a1b93 library: light: add PointLight implementation 2020-03-16 17:45:35 +01:00
Bruno BELANYI 7c8cc0d970 library: shape: add Sphere implementation 2020-03-16 17:29:11 +01:00
Bruno BELANYI 7d28e21a70 library: move from f64 to f32
They are faster to compute with, take less space --which means faster
access because we use less cache lines--, and they are what is used by
`bvh`...
2020-03-16 17:26:04 +01:00
Bruno BELANYI 31272bceac library: core: color: add arithmetic operations
The only operations that are not supported right now are term-by-term
division and multiplication between two colors.

I deemed the multiplication and division by a scalar more important than
those operations for the moment.
2020-03-16 16:14:40 +01:00
Bruno BELANYI 924f6bcc3c library: shape: add Shape trait definition 2020-03-16 15:25:21 +01:00
Bruno BELANYI 6aaf927823 library: add shape module 2020-03-16 15:25:03 +01:00
Bruno BELANYI 30c48ea021 library: light: add SpatialLight trait definition 2020-03-16 15:22:56 +01:00
Bruno BELANYI 20d9103d39 library: light: add Light trait definition 2020-03-16 15:22:56 +01:00
Bruno BELANYI c0e21d2f66 library: add light module 2020-03-16 15:18:15 +01:00
Bruno BELANYI b89631adce library: core: add LinearColor type 2020-03-16 15:16:37 +01:00
Bruno BELANYI ecde825407 library: add core module 2020-03-16 15:16:20 +01:00
Bruno BELANYI fe6a58f00e library: define point and vector type aliases 2020-03-16 15:15:01 +01:00
Bruno BELANYI ea9120fab3 project: split project into library and executable 2020-03-16 14:57:55 +01:00
Bruno BELANYI 35626278d1 project: add Cargo project files
Those files were generated using `cargo init pathtracer`.
2020-03-08 16:22:44 +01:00