diff options
Diffstat (limited to 'hittable.go')
-rw-r--r-- | hittable.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hittable.go b/hittable.go index 5320a0f..5ab11cc 100644 --- a/hittable.go +++ b/hittable.go @@ -56,7 +56,7 @@ func (s Sphere) Hit(r Ray, ray_t Interval) (rec HitRecord) { rec.T = root; rec.P = r.At(rec.T); - out_n := rec.P.Sub(s.Origin).Div(Splat(s.Radius)); + out_n := rec.P.Sub(s.Origin).Div(SplatVec3(s.Radius)); rec.SetFaceNormal(r, out_n); rec.Valid = true; return; |