Searched refs:ray (Results 1 – 1 of 1) sorted by relevance
92 def intersect(self, ray): argument93 v = self.centre - ray.p94 b = v.dot(ray.d)116 def intersect(self, ray): argument145 def trace_ray(scene, ray, depth): argument150 t = obj.intersect(ray)160 point = ray.p + ray.d * hit_t162 if ray.d.dot(surf_norm) > 0:166 reflected = ray.d - surf_norm * (surf_norm.dot(ray.d) * 2)191 col += trace_ray(scene, Ray(point + ray.d * EPS, ray.d), depth - 1) * surf.transp[all …]
Completed in 3 milliseconds