summaryrefslogtreecommitdiff
path: root/src/sphere.cu
blob: d1ae9e925159a50f9c110fb03ab0e9a6402bbea4 (plain)
1
2
3
4
5
6
7
8
9
#include "sphere.cuh"

__device__ T Sphere::distance_estimator(vect3 point) const {
  return length(this->pos_ - point) - r_;
}

__device__ Color Sphere::get_color(struct Ray ray) const {
  return normalize(ray.start);
}