Add default values for trace_ray depth and weight arguments
This commit is contained in:
parent
745aa27447
commit
58f3cdd304
2 changed files with 5 additions and 3 deletions
|
@ -42,7 +42,7 @@ public:
|
|||
void add_light(PointLight *light);
|
||||
|
||||
private:
|
||||
Color trace_ray(const Ray &ray, const int depth);
|
||||
Color trace_ray(const Ray &ray, const int depth = 0, const float weight = 1.0);
|
||||
|
||||
// Pixel dimensions of the image.
|
||||
int width, height;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue