Add default values for trace_ray depth and weight arguments

This commit is contained in:
Eryn Wells 2013-09-21 16:45:10 -07:00
parent 745aa27447
commit 58f3cdd304
2 changed files with 5 additions and 3 deletions

View file

@ -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;