From c05aa71f402abb3b0f05a40fa61e6159cf87ebd6 Mon Sep 17 00:00:00 2001 From: brett weiland Date: Sat, 1 Jun 2024 16:58:25 -0500 Subject: project is dead --- src/sphere.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sphere.cu') diff --git a/src/sphere.cu b/src/sphere.cu index 849a37d..d1ae9e9 100644 --- a/src/sphere.cu +++ b/src/sphere.cu @@ -1,9 +1,9 @@ #include "sphere.cuh" __device__ T Sphere::distance_estimator(vect3 point) const { - return length(point) - r_; + return length(this->pos_ - point) - r_; } __device__ Color Sphere::get_color(struct Ray ray) const { - return make_color(0); + return normalize(ray.start); } -- cgit v1.2.3