summaryrefslogtreecommitdiff
path: root/src/sphere.cu
diff options
context:
space:
mode:
authorbrett weiland <brettsweiland@gmail.com>2024-06-01 16:58:25 -0500
committerbrett weiland <brettsweiland@gmail.com>2024-06-01 16:58:25 -0500
commitc05aa71f402abb3b0f05a40fa61e6159cf87ebd6 (patch)
tree12bcabc50251f5df0687440639339df3036c1db7 /src/sphere.cu
parentb0dd97ee6bf8d5daa587da40ad941efac68152df (diff)
project is deadHEADmaster
Diffstat (limited to 'src/sphere.cu')
-rw-r--r--src/sphere.cu4
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);
}