Skip to content
Snippets Groups Projects
Commit 64c56214 authored by Pascal Engeler's avatar Pascal Engeler
Browse files

Added extinction coefficient

parent 1550ff05
No related branches found
No related tags found
No related merge requests found
......@@ -25,5 +25,5 @@ camera::camera(double aspect_ratio, double viewport_height, double viewport_widt
ray camera::get_ray(double u, double v) const{
//return ray(origin, lower_left_corner + u*horizontal + v*vertical - origin);
return ray(lower_left_corner + u*horizontal + v*vertical, unit_vector(lower_left_corner + u*horizontal + v*vertical - origin), 1., 0., 1., 0, max_bounces);
return ray(lower_left_corner + u*horizontal + v*vertical, unit_vector(lower_left_corner + u*horizontal + v*vertical - origin), 1., 0., 1., 0., 0, max_bounces);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment