/* private Vector3 RayColor(Ray r, List<Triangle> TrigsLst, PointLight lightSource) * { * for (int i = 0; i < TrigsLst.Count; i++) * { * if (IntersectionRayTriangle(r, TrigsLst[i])) * { * return ComputeLightening(r, lightSource) * new Vector3(0, 1, 0); * } * } * * return new Vector3(1, 1, 1); * }*/ private Vector3 RayColor(Ray r, PointLight lightSource) { return(ComputeLightening(r, lightSource) * new Vector3(0, 1, 0)); }