fx: always true comparison
This commit is contained in:
@@ -224,7 +224,7 @@ impl Camera {
|
||||
}
|
||||
|
||||
fn ray_colour(&self, hittables: &Vec<Arc<dyn Hittable>>, r: &Ray, depth: u32) -> Colour {
|
||||
if depth <= 0 {
|
||||
if depth == 0 {
|
||||
return Colour::default();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user