Ray tracing for two lenses