Hi, this is a small change that allows the panorama camera in Cycles to use the near clipping 'plane'. I found this useful for creating spherical environment or reflection maps from an existing scene. The original behavior can be achieved by setting the near clipping to 0 (or as close as allowed).
Sergey Sharybin (sergey) Dalai Felinto (dfelinto)
- rC6cc336630f90: use near clipping distance in panorama camera
rBS7fec7eee2070: Cycles: use near clipping distance in panorama camera.
rBcb44a3e5d764: Cycles: use near clipping distance in panorama camera.
rC85672f1c7535: use near clipping distance in panorama camera
rB7fec7eee2070: Cycles: use near clipping distance in panorama camera.
Actually, from a closer look I think we will have a problem with the code as it is. I can't see the "context" in this patch (did the author remember to use arcanist?), but I believe for spherical stereo we need to do the clipping later in the code (as we do for perspective lens).
I don't think near clipping was left out intentionally for panorama.
I'm not sure we should use do_versions, setting it to the minimum can also mess up OpenGL display precision. I think the default is small enough for it to not matter much.
Indeed the clipping should be done later. Just moving this whole #ifdef .. #else .. #endif section to the end of the function should work.