From e88422cb2ff9ed838b75fcf21071a03b0dbe5760 Mon Sep 17 00:00:00 2001 From: djairoh Date: Wed, 29 Apr 2026 01:55:47 +0200 Subject: [PATCH] fx: always true comparison --- src/camera.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/camera.rs b/src/camera.rs index ffbcf4a..05f7838 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -224,7 +224,7 @@ impl Camera { } fn ray_colour(&self, hittables: &Vec>, r: &Ray, depth: u32) -> Colour { - if depth <= 0 { + if depth == 0 { return Colour::default(); }