fx: always true comparison

This commit is contained in:
2026-04-29 01:55:47 +02:00
parent 8f244fc6d8
commit e88422cb2f

View File

@@ -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();
}