Blender  V3.3
DNA_camera_defaults.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 /* Struct members on own line. */
10 /* clang-format off */
11 
12 /* -------------------------------------------------------------------- */
16 #define _DNA_DEFAULT_CameraDOFSettings \
17  { \
18  .aperture_fstop = 2.8f, \
19  .aperture_ratio = 1.0f, \
20  .focus_distance = 10.0f, \
21  }
22 
23 #define _DNA_DEFAULT_CameraStereoSettings \
24  { \
25  .interocular_distance = 0.065f, \
26  .convergence_distance = 30.0f * 0.065f, \
27  .pole_merge_angle_from = DEG2RADF(60.0f), \
28  .pole_merge_angle_to = DEG2RADF(75.0f), \
29  }
30 
31 #define _DNA_DEFAULT_Camera \
32  { \
33  .lens = 50.0f, \
34  .sensor_x = DEFAULT_SENSOR_WIDTH, \
35  .sensor_y = DEFAULT_SENSOR_HEIGHT, \
36  .clip_start = 0.1f, \
37  .clip_end = 1000.0f, \
38  .drawsize = 1.0f, \
39  .ortho_scale = 6.0, \
40  .flag = CAM_SHOWPASSEPARTOUT, \
41  .passepartalpha = 0.5f, \
42  \
43  .dof = _DNA_DEFAULT_CameraDOFSettings, \
44  \
45  .stereo = _DNA_DEFAULT_CameraStereoSettings, \
46  }
47 
50 /* clang-format on */