diff options
Diffstat (limited to 'source/blender/draw')
4 files changed, 10 insertions, 10 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); diff --git a/source/blender/draw/engines/workbench/workbench_effect_dof.c b/source/blender/draw/engines/workbench/workbench_effect_dof.c index d5e9348e29a..25677a523e6 100644 --- a/source/blender/draw/engines/workbench/workbench_effect_dof.c +++ b/source/blender/draw/engines/workbench/workbench_effect_dof.c @@ -256,8 +256,8 @@ void workbench_dof_engine_init(WORKBENCH_Data *vedata, Object *camera) wpd->dof_distance = -focus_dist; wpd->dof_invsensorsize = full_size[0] / sensor_scaled; - wpd->dof_near_far[0] = -cam->clipsta; - wpd->dof_near_far[1] = -cam->clipend; + wpd->dof_near_far[0] = -cam->clip_start; + wpd->dof_near_far[1] = -cam->clip_end; float blades = cam->gpu_dof.num_blades; float rotation = cam->gpu_dof.rotation; diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c index cf3c3267ac4..7e9dde4f210 100644 --- a/source/blender/draw/modes/object_mode.c +++ b/source/blender/draw/modes/object_mode.c @@ -616,10 +616,10 @@ static void OBJECT_engine_init(void *vedata) float dist; if (rv3d->persp == RV3D_CAMOB && v3d->camera && v3d->camera->type == OB_CAMERA) { Object *camera_object = DEG_get_evaluated_object(draw_ctx->depsgraph, v3d->camera); - dist = ((Camera *)(camera_object->data))->clipend; + dist = ((Camera *)(camera_object->data))->clip_end; } else { - dist = v3d->far; + dist = v3d->clip_end; } e_data.grid_settings[0] = dist / 2.0f; /* gridDistance */ @@ -1915,10 +1915,10 @@ static void DRW_shgroup_camera(OBJECT_ShadingGroupList *sgl, Object *ob, ViewLay DRW_shgroup_call_dynamic_add( sgl->camera_clip, color, - &cam->clipsta, &cam->clipend, cam->runtime.drw_normalmat); + &cam->clip_start, &cam->clip_end, cam->runtime.drw_normalmat); DRW_shgroup_call_dynamic_add( sgl->camera_clip_points, (is_active ? col_hi : col), - &cam->clipsta, &cam->clipend, cam->runtime.drw_normalmat); + &cam->clip_start, &cam->clip_end, cam->runtime.drw_normalmat); } if (cam->flag & CAM_SHOWMIST) { |