From d248e30d365d5e401d5cd372aa415fb2f9a39326 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Mon, 24 Jun 2024 22:12:44 +0100 Subject: Chapter 10 --- camera.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camera.go') diff --git a/camera.go b/camera.go index b42e9e1..f33d98a 100644 --- a/camera.go +++ b/camera.go @@ -74,7 +74,7 @@ func (cam Camera) GetRay(row uint, col uint) Ray { pixel_sample := cam.Pixel00. Add(cam.PDU.Mul(SplatVec3(float64(col) + offset.X))). Add(cam.PDV.Mul(SplatVec3(float64(row) + offset.Y))); - return Ray{cam.Centre, pixel_sample.Sub(cam.Centre)}; + return Ray{cam.Centre, pixel_sample.Sub(cam.Centre), true}; } func unit_square() Vec3 { -- cgit v1.2.1