summaryrefslogtreecommitdiff
path: root/src/sphere.cu
diff options
context:
space:
mode:
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);
}