Bruno BELANYI
7dc622b9e7
library: core: film: add width/height methods
2020-03-17 23:25:29 +01:00
Bruno BELANYI
4c7085ab16
library: core: film: use float for pixel_ratio
2020-03-17 23:24:48 +01:00
Bruno BELANYI
7112873715
library: replace super::super
by crate
import
...
Done with the following shell command:
`sed -e 's/super::super/crate/' -i $(git grep -l super::super)`.
Followed by a `cargo fmt --all`.
2020-03-17 20:49:30 +01:00
Bruno BELANYI
48b3f03d40
library: core: color: add Mul-like ops by self
2020-03-17 19:17:52 +01:00
Bruno BELANYI
2dd5c675af
library: core: add Camera implementation
2020-03-17 19:17:52 +01:00
Bruno BELANYI
a4caa456ce
library: core: add Film implementation
2020-03-17 19:17:52 +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
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