raytracer
Parallel Ray Tracer written from scratch (no graphics API).
Loading...
Searching...
No Matches
scene.h
Go to the documentation of this file.
1
#pragma once
2
#include <vector>
3
#include <memory>
4
#include <nlohmann/json.hpp>
5
#include "
common/util/vec3.h
"
6
#include "
camera.h
"
7
#include "
shapes/object.h
"
8
9
namespace
raytracer::raytracer
10
{
11
using
json
= nlohmann::json;
12
16
struct
RayTracerSceneConfig
17
{
18
common::Vec3
background_color
;
19
common::Vec3
sky_color
;
20
Camera
camera
;
21
22
std::vector<std::unique_ptr<Object>>
objects
;
23
24
// Post-processing
25
bool
is_shading_thresholded
;
26
double
thresholded_shading_degrees
;
27
bool
is_grayscale
;
28
29
std::string
output_path
;
30
};
31
}
// namespace raytracer::raytracer
camera.h
raytracer::raytracer::Camera
Definition
camera.h:32
raytracer::raytracer
Definition
raytracer.cpp:29
raytracer::raytracer::json
nlohmann::json json
Definition
scene.h:11
object.h
raytracer::common::Vec3
Definition
vec3.h:11
raytracer::raytracer::RayTracerSceneConfig
Definition
scene.h:17
raytracer::raytracer::RayTracerSceneConfig::camera
Camera camera
Definition
scene.h:20
raytracer::raytracer::RayTracerSceneConfig::thresholded_shading_degrees
double thresholded_shading_degrees
Definition
scene.h:26
raytracer::raytracer::RayTracerSceneConfig::is_grayscale
bool is_grayscale
Definition
scene.h:27
raytracer::raytracer::RayTracerSceneConfig::output_path
std::string output_path
Definition
scene.h:29
raytracer::raytracer::RayTracerSceneConfig::background_color
common::Vec3 background_color
Definition
scene.h:18
raytracer::raytracer::RayTracerSceneConfig::sky_color
common::Vec3 sky_color
Definition
scene.h:19
raytracer::raytracer::RayTracerSceneConfig::is_shading_thresholded
bool is_shading_thresholded
Definition
scene.h:25
raytracer::raytracer::RayTracerSceneConfig::objects
std::vector< std::unique_ptr< Object > > objects
Definition
scene.h:22
vec3.h
raytracer
include
raytracer
scene.h
Generated by
1.15.0