diff options
author | brett weiland <brettsweiland@gmail.com> | 2024-06-01 16:58:25 -0500 |
---|---|---|
committer | brett weiland <brettsweiland@gmail.com> | 2024-06-01 16:58:25 -0500 |
commit | c05aa71f402abb3b0f05a40fa61e6159cf87ebd6 (patch) | |
tree | 12bcabc50251f5df0687440639339df3036c1db7 /src/sphere.cu | |
parent | b0dd97ee6bf8d5daa587da40ad941efac68152df (diff) |
Diffstat (limited to 'src/sphere.cu')
-rw-r--r-- | src/sphere.cu | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |