Skip to content

Commit 17eade8

Browse files
committed
more docs
1 parent a2635ad commit 17eade8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/include/utils/load_json.hpp

+10
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,29 @@ class ParseJsonException : public std::exception {
2323

2424
// Basic image information
2525
struct ImageInfo {
26+
// Height of the image
2627
size_t height;
28+
// Iteration limit
2729
int max_bounces;
30+
// Samples per pixel
2831
int spp;
32+
// AspectRatio of the image
2933
AspectRatio aspect_ratio;
3034
};
3135

3236
// Parameters of a render. Allocates the necessary memory.
3337
struct Params {
38+
// Virtual camera settings
3439
Camera cam;
40+
// Basic image and rendering settings
3541
ImageInfo info;
42+
// Vector of global lights
3643
std::vector<GlobalIllumination> global_lights;
44+
// Map of named materials
3745
std::unordered_map<std::string, std::shared_ptr<Material>> materials;
46+
// Vector of objects
3847
std::vector<std::shared_ptr<Hittable>> objects;
48+
// Vector of sampled objects
3949
std::vector<size_t> sampled_objects;
4050

4151
// Load the parameters from a JSON filename

0 commit comments

Comments
 (0)