Commit graph

15 commits

Author SHA1 Message Date
Antoine Martin
2aed964101 library: document light module 2020-03-23 12:41:39 +01:00
Bruno BELANYI
7ce201ecc2 library: light: spot: add deserialization 2020-03-18 14:38:01 +01:00
Bruno BELANYI
3ef827cabf library: light: spot: fix constructors
The vector was not normalized on input in the SpotLight constructor...
2020-03-18 14:37:16 +01:00
Bruno BELANYI
ebe00365d1 library: light: point: add deserialization 2020-03-18 14:36:28 +01:00
Bruno BELANYI
42abfed3fa library: light: directional: add deserialization 2020-03-18 14:35:53 +01:00
Bruno BELANYI
85f274a0b1 library: light: ambient: add deserialization 2020-03-18 14:35:19 +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
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
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
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