diff options
author | brett weiland <brettsweiland@gmail.com> | 2024-06-01 01:36:18 -0500 |
---|---|---|
committer | brett weiland <brettsweiland@gmail.com> | 2024-06-01 01:36:18 -0500 |
commit | b0dd97ee6bf8d5daa587da40ad941efac68152df (patch) | |
tree | f162d32767e0b0f84bed284f6e8ab2c5309ff248 /src/sphere.cu | |
parent | 093200a449ea38952de52012e324036c106e294b (diff) |
got raycasting laid out
Diffstat (limited to 'src/sphere.cu')
-rw-r--r-- | src/sphere.cu | 9 |
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); +} |