From c05aa71f402abb3b0f05a40fa61e6159cf87ebd6 Mon Sep 17 00:00:00 2001 From: brett weiland Date: Sat, 1 Jun 2024 16:58:25 -0500 Subject: project is dead --- src/camera.cuh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/camera.cuh') diff --git a/src/camera.cuh b/src/camera.cuh index 4d04fcd..7d04d98 100644 --- a/src/camera.cuh +++ b/src/camera.cuh @@ -1,25 +1,26 @@ #ifndef CAMERA_H #define CAMERA_H - +#include +#include #include "entity.cuh" #include "common.cuh" -#include +#include "scene.cuh" //template class scene; //I am soooo high lol -class camera : public entity { +class Camera : public Entity { public: - __device__ camera(scene *pscene, const T fov = 1, const vect3 pos = make_vect3(0), const vect3 rot = make_vect3(0)) - : pscene(pscene), fov(fov), entity(pos, rot, make_vect3(0)) {}; + __device__ Camera(const T fov = 1, const vect3 pos = make_vect3(0), const vect3 rot = make_vect3(0)) + : fov(fov), Entity(pos, rot, make_vect3(0)) {}; + __device__ void render(Scene scene, uint8_t *image); private: + const T clip_min = .1; + const T clip_max = 100; + const int max_steps = 100; T fov; float2 size; - int steps = 100; - T clip_min = .1; - T clip_max = 100; - //scene *pscene; }; /** @@ -71,5 +72,4 @@ template __device__ void camera::render() { } **/ - #endif -- cgit v1.2.3