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`...
This commit is contained in:
parent
5d03df960c
commit
7d28e21a70
4 changed files with 12 additions and 9 deletions
|
|
@ -10,5 +10,5 @@ pub trait Light: std::fmt::Debug {
|
|||
/// Represent a light which has an abstract position in the scene being rendered.
|
||||
pub trait SpatialLight: Light {
|
||||
/// Get a unit vector from the origin to the position of the light, and its distance
|
||||
fn to_source(&self, origin: &Point) -> (Vector, f64);
|
||||
fn to_source(&self, origin: &Point) -> (Vector, f32);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue