PathInfo pathInfo = new PathInfo(scene, lambda);
return strategy.traceLightPath(light, pathInfo, rnd);
}
private final PathNode generateEyePath(Random rnd, WavelengthPacket lambda) {
Lens lens = scene.getLens();
Point2 p = RandomUtil.canonical2(rnd);
PathInfo pathInfo = new PathInfo(scene, lambda);
return strategy.traceEyePath(lens, p, pathInfo, rnd);
}