From c03650073e60194500e13dc996168c4930970f5b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 16 Feb 2021 21:15:45 +1100 Subject: Cleanup: spelling --- source/blender/draw/engines/eevee/eevee_depth_of_field.c | 12 ++++++------ source/blender/draw/engines/eevee/eevee_effects.c | 2 +- source/blender/draw/engines/eevee/eevee_temporal_sampling.c | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'source/blender/draw/engines') 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 bd6c6242f86..91214f6c437 100644 --- a/source/blender/draw/engines/eevee/eevee_depth_of_field.c +++ b/source/blender/draw/engines/eevee/eevee_depth_of_field.c @@ -23,7 +23,7 @@ * * There are 2 methods to achieve this effect. * - The first uses projection matrix offsetting and sample accumulation to give reference quality - * depth of field. But this needs many samples to hide the undersampling. + * depth of field. But this needs many samples to hide the under-sampling. * - The second one is a post-processing based one. It follows the implementation described in * the presentation "Life of a Bokeh - Siggraph 2018" from Guillaume Abadie. There are some * difference with our actual implementation that prioritize quality. @@ -139,7 +139,7 @@ bool EEVEE_depth_of_field_jitter_get(EEVEE_EffectsInfo *fx, r_jitter[1] = (float)ring_sample / ring_sample_count; { - /* Bokeh shape parametrisation */ + /* Bokeh shape parameterization. */ float r = r_jitter[0]; float T = r_jitter[1] * 2.0f * M_PI; @@ -388,7 +388,7 @@ static void dof_bokeh_pass_init(EEVEE_FramebufferList *fbl, } /** - * Ouputs halfResColorBuffer and halfResCocBuffer. + * Outputs halfResColorBuffer and halfResCocBuffer. **/ static void dof_setup_pass_init(EEVEE_FramebufferList *fbl, EEVEE_PassList *psl, @@ -422,7 +422,7 @@ static void dof_setup_pass_init(EEVEE_FramebufferList *fbl, } /** - * Ouputs min & max coc in each 8x8 half res pixel tiles (so 1/16th of fullres). + * Outputs min & max COC in each 8x8 half res pixel tiles (so 1/16th of full resolution). **/ static void dof_flatten_tiles_pass_init(EEVEE_FramebufferList *fbl, EEVEE_PassList *psl, @@ -453,7 +453,7 @@ static void dof_flatten_tiles_pass_init(EEVEE_FramebufferList *fbl, } /** - * Dilates the min & max cocs to cover maximum coc values. + * Dilates the min & max COCS to cover maximum COC values. * Output format/dimensions should be the same as coc_flatten_pass as they are swapped for * doing multiple dilation passes. **/ @@ -536,7 +536,7 @@ static void dof_dilate_tiles_pass_draw(EEVEE_FramebufferList *fbl, } /** - * Create mipmaped color & coc textures for gather passes. + * Create mipmaped color & COC textures for gather passes. **/ static void dof_reduce_pass_init(EEVEE_FramebufferList *fbl, EEVEE_PassList *psl, diff --git a/source/blender/draw/engines/eevee/eevee_effects.c b/source/blender/draw/engines/eevee/eevee_effects.c index 77586f4b43a..18d3e453c5d 100644 --- a/source/blender/draw/engines/eevee/eevee_effects.c +++ b/source/blender/draw/engines/eevee/eevee_effects.c @@ -517,7 +517,7 @@ void EEVEE_draw_effects(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata) DRW_viewport_request_redraw(); } - /* Record pers matrix for the next frame. */ + /* Record perspective matrix for the next frame. */ DRW_view_persmat_get(effects->taa_view, effects->prev_persmat, false); /* Update double buffer status if render mode. */ diff --git a/source/blender/draw/engines/eevee/eevee_temporal_sampling.c b/source/blender/draw/engines/eevee/eevee_temporal_sampling.c index 8fa7d899b6b..226d98cc50d 100644 --- a/source/blender/draw/engines/eevee/eevee_temporal_sampling.c +++ b/source/blender/draw/engines/eevee/eevee_temporal_sampling.c @@ -173,14 +173,14 @@ void EEVEE_temporal_sampling_matrices_calc(EEVEE_EffectsInfo *effects, const dou /* Get focus distance in NDC. */ float focus_pt[3] = {0.0f, 0.0f, -focus_distance}; mul_project_m4_v3(winmat, focus_pt); - /* Get pixel footprint in viewspace. */ + /* Get pixel footprint in view-space. */ float jitter_scaled[3] = {dof_jitter[0], dof_jitter[1], focus_pt[2]}; float center[3] = {0.0f, 0.0f, focus_pt[2]}; mul_project_m4_v3(wininv, jitter_scaled); mul_project_m4_v3(wininv, center); - /* FIXME(fclem) The offset is noticeably large and the culling might make object pop out - * of the bluring radius. To fix this, use custom enlarged culling matrix. */ + /* FIXME(fclem): The offset is noticeably large and the culling might make object pop out + * of the blurring radius. To fix this, use custom enlarged culling matrix. */ sub_v2_v2v2(jitter_scaled, jitter_scaled, center); add_v2_v2(viewmat[3], jitter_scaled); -- cgit v1.2.3