// An object must implement a Renderable interface in order to // be ray traced. Using this interface it is straightforward // to add new objects abstract interface Renderable { public abstract boolean intersect(Ray r); public abstract Color Shade(Ray r, Vector lights, Vector objects, Color bgnd); public String toString(); } |
||||||
![]() |
Lecture 19 | Slide 15 | 6.837 Fall '00 | ![]() |