summaryrefslogtreecommitdiff
path: root/src/sphere.cuh
blob: 0d228ff4712eff3a4dc098f7675d427c4441fa7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef SPHERE_H
#define SPHERE_H

#include "render_object.cuh"
#include "common.cuh"

class Sphere : public Render_object {
  using Render_object::Render_object;
  public:
   __device__ T distance_estimator(vect3 point) const;
   __device__ Color get_color(struct Ray ray) const;
  private:
    T r_ = 1;
};


#endif