31 #include <vertex_storage.h> 32 #include <cugar/linalg/vector.h> 34 #include <ray_queues.h> 35 #include <bpt_queues.h> 53 template <
typename TBPTOptions>
63 const TBPTOptions _options = TBPTOptions()) :
65 light_vertices(_light_vertices),
66 in_queue(_queues.in_queue),
67 shadow_queue(_queues.shadow_queue),
68 scatter_queue(_queues.scatter_queue),
71 set_camera(_renderer.camera, _renderer.res_x, _renderer.res_y, _renderer.aspect);
75 void set_camera(
const Camera& camera,
const uint32 res_x,
const uint32 res_y,
const float aspect_ratio)
77 camera_frame(camera, aspect_ratio, camera_U, camera_V, camera_W);
82 camera_square_focal_length = camera.square_screen_focal_length();
96 float camera_square_focal_length;
Definition: bpt_queues.h:42
Definition: ray_queues.h:57
Definition: vertex_storage.h:51
FERMAT_HOST_DEVICE void camera_frame(cugar::Vector3f eye, cugar::Vector3f lookat, cugar::Vector3f up, float hfov, float aspect_ratio, cugar::Vector3f &U, cugar::Vector3f &V, cugar::Vector3f &W)
Definition: camera.h:142
Definition: bpt_context.h:54
Definition: renderer_view.h:80
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE uint32 length(const vector_view< Iterator > &vec)
Definition: vector_view.h:228