diff options
author | Lukas Stockner <lukas.stockner@freenet.de> | 2015-04-26 00:49:17 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2015-04-26 00:51:56 +0300 |
commit | 60c5a2f2d21da2373cccebe3de025440c16b44a6 (patch) | |
tree | b0c4d50f26919c6ac732adb4ca5c50f73925f42c /intern/cycles/blender | |
parent | 01dda9a434f393fbd6787e9d1c3baf21374151e4 (diff) |
Cycles: Add Mirror ball mapping to camera panorama options
The projection code was already in place, so this just exposes the option.
Differential Revision: https://developer.blender.org/D1079
Diffstat (limited to 'intern/cycles/blender')
-rw-r--r-- | intern/cycles/blender/addon/properties.py | 1 | ||||
-rw-r--r-- | intern/cycles/blender/blender_camera.cpp | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/blender/addon/properties.py b/intern/cycles/blender/addon/properties.py index a86f162ae5f..875b5d384e3 100644 --- a/intern/cycles/blender/addon/properties.py +++ b/intern/cycles/blender/addon/properties.py @@ -66,6 +66,7 @@ enum_panorama_types = ( ('FISHEYE_EQUIDISTANT', "Fisheye Equidistant", "Ideal for fulldomes, ignore the sensor dimensions"), ('FISHEYE_EQUISOLID', "Fisheye Equisolid", "Similar to most fisheye modern lens, takes sensor dimensions into consideration"), + ('MIRRORBALL', "Mirror Ball", "Uses the mirror ball mapping"), ) enum_curve_primitives = ( diff --git a/intern/cycles/blender/blender_camera.cpp b/intern/cycles/blender/blender_camera.cpp index fffc46ec9a6..3d23b5ecea8 100644 --- a/intern/cycles/blender/blender_camera.cpp +++ b/intern/cycles/blender/blender_camera.cpp @@ -148,6 +148,9 @@ static void blender_camera_from_object(BlenderCamera *bcam, BL::RenderEngine b_e case 2: bcam->panorama_type = PANORAMA_FISHEYE_EQUISOLID; break; + case 3: + bcam->panorama_type = PANORAMA_MIRRORBALL; + break; case 0: default: bcam->panorama_type = PANORAMA_EQUIRECTANGULAR; |