Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <j.bakker@atmind.nl>2019-05-17 17:57:31 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-17 18:59:26 +0300
commitbc3139d79226896cf6c2b0813a1188eda70fad09 (patch)
treee5c7f1f878b4769def10e2ddbc75aacebda4afd5 /source/blender/makesdna/DNA_camera_types.h
parent043299ab69ca47a42fc8ca4f629727f8a6a2dd31 (diff)
Cycles/Eevee: unify depth of field settings for cameras
There is now a checkbox to enable/disable depth of field per camera. For Eevee this replace the scene level setting. For Cycles there is now only an F-Stop value, no longer a Radius. Existing files are converted based on Cycles or Eevee being set in the scene. Differential Revision: https://developer.blender.org/D4882
Diffstat (limited to 'source/blender/makesdna/DNA_camera_types.h')
-rw-r--r--source/blender/makesdna/DNA_camera_types.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_camera_types.h b/source/blender/makesdna/DNA_camera_types.h
index 8c5d911b7fa..b78b2f64648 100644
--- a/source/blender/makesdna/DNA_camera_types.h
+++ b/source/blender/makesdna/DNA_camera_types.h
@@ -67,6 +67,19 @@ typedef struct CameraBGImage {
short source;
} CameraBGImage;
+/** Properties for dof effect. */
+typedef struct CameraDOFSettings {
+ /** Focal distance for depth of field. */
+ struct Object *focus_object;
+ float focus_distance;
+ float aperture_fstop;
+ float aperture_rotation;
+ float aperture_ratio;
+ int aperture_blades;
+ short flag;
+ char _pad[2];
+} CameraDOFSettings;
+
typedef struct Camera_Runtime {
/* For draw manager. */
float drw_corners[2][4][2];
@@ -91,13 +104,14 @@ typedef struct Camera {
float lens, ortho_scale, drawsize;
float sensor_x, sensor_y;
float shiftx, shifty;
- float dof_distance;
+ float dof_distance DNA_DEPRECATED;
/** Old animation system, deprecated for 2.5. */
struct Ipo *ipo DNA_DEPRECATED;
- struct Object *dof_ob;
- struct GPUDOFSettings gpu_dof;
+ struct Object *dof_ob DNA_DEPRECATED;
+ struct GPUDOFSettings gpu_dof DNA_DEPRECATED;
+ struct CameraDOFSettings dof;
/* CameraBGImage reference images */
struct ListBase bg_images;
@@ -204,6 +218,11 @@ enum {
CAM_BGIMG_SOURCE_MOVIE = 1,
};
+/* CameraDOFSettings->flag */
+enum {
+ CAM_DOF_ENABLED = (1 << 0),
+};
+
#ifdef __cplusplus
}
#endif