library: material: uniform: fix float comparison
This commit is contained in:
parent
76db818fa8
commit
9dcce9218f
|
@ -83,6 +83,6 @@ mod test {
|
|||
#[test]
|
||||
fn reflectivity_works() {
|
||||
let mat = simple_material();
|
||||
assert_eq!(mat.reflectivity(Point2D::origin()), 0.5)
|
||||
assert!(mat.reflectivity(Point2D::origin()) - 0.5 < std::f32::EPSILON)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue