public static RColor getLight(P3 p, P3 normal) { RColor c = new RColor(0, 0, 0); foreach (Light l in lights) { c = c.Add(l.illumination(p, normal)); } return(c); }
public static RColor getLight(P3 p, P3 normal) { RColor c = new RColor(0, 0, 0); foreach (Light l in lights) { c = c.Add(l.illumination(p, normal)); } return c; }