diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-16 04:21:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-16 04:26:07 +0300 |
commit | 2f737c4f475a5625f9140b84ffd55435ca2fd805 (patch) | |
tree | 900754833493ba12e26aefdeb9fde9bd1776b4cb /source/blender/draw/engines/eevee | |
parent | ec471a9b1c14ea5dcb855de7e570e27ad70661c5 (diff) |
DNA: rename near/far -> clip_start/clip_end
Rename for Camera, View3D (also CameraParams & Render not DNA)
Diffstat (limited to 'source/blender/draw/engines/eevee')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_depth_of_field.c | 4 | ||||
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_lookdev.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_depth_of_field.c b/source/blender/draw/engines/eevee/eevee_depth_of_field.c index 880885a1efb..d693e9cbd08 100644 --- a/source/blender/draw/engines/eevee/eevee_depth_of_field.c +++ b/source/blender/draw/engines/eevee/eevee_depth_of_field.c @@ -89,8 +89,8 @@ int EEVEE_depth_of_field_init(EEVEE_ViewLayerData *UNUSED(sldata), EEVEE_Data *v Camera *cam = (Camera *)camera->data; /* Retrieve Near and Far distance */ - effects->dof_near_far[0] = -cam->clipsta; - effects->dof_near_far[1] = -cam->clipend; + effects->dof_near_far[0] = -cam->clip_start; + effects->dof_near_far[1] = -cam->clip_end; int buffer_size[2] = {(int)viewport_size[0] / 2, (int)viewport_size[1] / 2}; diff --git a/source/blender/draw/engines/eevee/eevee_lookdev.c b/source/blender/draw/engines/eevee/eevee_lookdev.c index 4d62d1bceb9..7d35b931786 100644 --- a/source/blender/draw/engines/eevee/eevee_lookdev.c +++ b/source/blender/draw/engines/eevee/eevee_lookdev.c @@ -187,8 +187,8 @@ void EEVEE_lookdev_draw_background(EEVEE_Data *vedata) params.offsety = 0.0f; params.shiftx = 0.0f; params.shifty = 0.0f; - params.clipsta = 0.001f; - params.clipend = 20.0f; + params.clip_start = 0.001f; + params.clip_end = 20.0f; BKE_camera_params_compute_viewplane(¶ms, ar->winx, ar->winy, aspect[0], aspect[1]); BKE_camera_params_compute_matrix(¶ms); |