diff options
Diffstat (limited to 'color.go')
| -rw-r--r-- | color.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -32,6 +32,7 @@ func RayColor(ray Ray, hitable_list HitableList, depth int) Color { } hit := hitable_list.Hit(ray, T_MIN, T_MAX) if hit.time > 0.0 { + // TODO: Use the correct distribution direction := AddVec3D(hit.normal, RandomInUnitSphere()) scattered := Ray{hit.point, direction} return AttenuateColor(Color{0.5, 0.5, 0.5}, RayColor(scattered, hitable_list, depth+1)) |
