summaryrefslogtreecommitdiff
path: root/src/sphere.cu
diff options
context:
space:
mode:
Diffstat (limited to 'src/sphere.cu')
-rw-r--r--src/sphere.cu9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sphere.cu b/src/sphere.cu
new file mode 100644
index 0000000..849a37d
--- /dev/null
+++ b/src/sphere.cu
@@ -0,0 +1,9 @@
+#include "sphere.cuh"
+
+__device__ T Sphere::distance_estimator(vect3 point) const {
+ return length(point) - r_;
+}
+
+__device__ Color Sphere::get_color(struct Ray ray) const {
+ return make_color(0);
+}