private static int findColor(Intersection hit, Camera cam, Model model) { if (hit.isMatch()) { RealVector light = LightCalculations.computeLight(cam.getFrom3(), model, hit, 0); return toColour(light); } return 0; }