Cycles: Adding field-of-view options to the equirectangular panorama camera

This patch adds the option to set minimum/maximum latitude/longitude values for
the equirectangular panorama camera in Cycles, as discussed in T34400.

The separate functions in kernel_projection.h are needed because the regular
ones are also used as helper functions for environment map sampling.

Reviewers: #cycles, sergey

Reviewed By: #cycles, sergey

Subscribers: dingto, sergey, brecht

Differential Revision: https://developer.blender.org/D960
This commit is contained in:
Lukas Stockner
2015-01-14 23:14:45 +05:00
committed by Sergey Sharybin
parent 193871ae7d
commit 4118c1b4e6
7 changed files with 83 additions and 9 deletions

View File

@@ -53,6 +53,10 @@ public:
PanoramaType panorama_type;
float fisheye_fov;
float fisheye_lens;
float latitude_min;
float latitude_max;
float longitude_min;
float longitude_max;
/* anamorphic lens bokeh */
float aperture_ratio;