|
raytracer
Parallel Ray Tracer written from scratch (no graphics API).
|
#include <renderer.h>
Public Member Functions | |
| common::Image | render (const RayTracerSceneConfig &scene, std::ostream &out=common::get_nullout(), int number_of_threads=static_cast< int >(std::max(1U, std::thread::hardware_concurrency()))) |
| common::Image raytracer::raytracer::Renderer::render | ( | const RayTracerSceneConfig & | scene, |
| std::ostream & | out = common::get_nullout(), | ||
| int | number_of_threads = static_cast<int>(std::max(1U, std::thread::hardware_concurrency())) ) |
Render the 3D scene to an image given a configuration.
| scene | The object containing the details of the scene (objects, etc.). |
| out | The std::ostream to which to write rendering progress updates (defaults to none). |
| number_of_threads | The number of parallel threads used for rendering. |

