File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -23,19 +23,29 @@ class ParseJsonException : public std::exception {
23
23
24
24
// Basic image information
25
25
struct ImageInfo {
26
+ // Height of the image
26
27
size_t height;
28
+ // Iteration limit
27
29
int max_bounces;
30
+ // Samples per pixel
28
31
int spp;
32
+ // AspectRatio of the image
29
33
AspectRatio aspect_ratio;
30
34
};
31
35
32
36
// Parameters of a render. Allocates the necessary memory.
33
37
struct Params {
38
+ // Virtual camera settings
34
39
Camera cam;
40
+ // Basic image and rendering settings
35
41
ImageInfo info;
42
+ // Vector of global lights
36
43
std::vector<GlobalIllumination> global_lights;
44
+ // Map of named materials
37
45
std::unordered_map<std::string, std::shared_ptr<Material>> materials;
46
+ // Vector of objects
38
47
std::vector<std::shared_ptr<Hittable>> objects;
48
+ // Vector of sampled objects
39
49
std::vector<size_t > sampled_objects;
40
50
41
51
// Load the parameters from a JSON filename
You can’t perform that action at this time.
0 commit comments