diff options
author | Nat Lasseter <user@4574.co.uk> | 2024-06-12 23:19:56 +0100 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2024-06-12 23:19:56 +0100 |
commit | 523f9439ed0d2e4c2d51edc623b6c4d62885cfdd (patch) | |
tree | 38a5f147ed09b90f3f6d395f91c5254c40be2854 /lib/ray.rb | |
parent | 1bc4829392b3c91737fbe4ddccd81098ac9d8a12 (diff) |
Finished chapter 9
Diffstat (limited to 'lib/ray.rb')
-rw-r--r-- | lib/ray.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ class Ray return Colour.new if depth <= 0 if rec = world.hit(self, Interval.new(0.0001, Float::INFINITY)) - dir = Vec3.random_unit(rec.normal) + dir = rec.normal + Vec3.random_unit return Ray.new(rec.point, dir).colour(world, depth - 1) * 0.5 end |