Commit graph

23 commits

Author SHA1 Message Date
a41817217a Blend specular color with reflected color 2013-09-21 17:14:47 -07:00
d5f640871c Comment about lambert shading 2013-09-21 17:06:49 -07:00
daeb052003 Don't acknowledge intersections closer than t=1e-2.
This avoids intersections with the shape itself.
2013-09-21 17:04:54 -07:00
6c1e8c7ffb Add min_weight property to Scene 2013-09-21 17:01:11 -07:00
482896cfa1 First pass at doing reflections -- splotchy... 2013-09-21 16:45:30 -07:00
58f3cdd304 Add default values for trace_ray depth and weight arguments 2013-09-21 16:45:10 -07:00
90530b74ef Return Black if max depth exceeded 2013-09-21 15:42:11 -07:00
16a37f6fb3 Shadows! 2013-09-13 18:56:07 -07:00
529b1978a6 Use diffuse parameters to compute shading 2013-09-13 18:39:23 -07:00
438b0734a4 Use ambient light in lighting calculations 2013-09-13 18:25:22 -07:00
3b7f672ab3 Add get_ambient() to Scene 2013-09-13 18:25:09 -07:00
cae8b21068 Clean up shapes and lights lists 2013-09-13 14:15:55 -07:00
fcd2781cc7 Add ambient property to Scene 2013-09-13 14:15:34 -07:00
55ef253c10 New lighting object tree: AmbientLight -> PointLight 2013-09-13 14:14:03 -07:00
cc126a153e Add ray count and duration stats 2013-09-12 09:10:22 -07:00
a3bdc01d45 Compact some normalization and stuff 2013-09-11 22:11:56 -07:00
e76bf0f444 Lambert shading! 2013-09-11 22:03:50 -07:00
8a1934f957 Reorder some code -- just some formatting 2013-09-11 10:35:03 -07:00
247e205827 Return material color if there was a ray intersection 2013-09-11 10:33:56 -07:00
3a5c6cddf9 Add max_depth parameter 2013-09-11 10:33:20 -07:00
6bb7689ac0 Add lights to the scene 2013-09-10 21:49:01 -07:00
72c0d1475e Yay! 2013-09-10 21:04:56 -07:00
568e3f4c55 Update scene module for C++ 2013-09-10 16:28:38 -07:00