diff options
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_depth_of_field.c')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_depth_of_field.c | 4 |
1 files changed, 2 insertions, 2 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 4f28ede3bc6..e9d68ff24fa 100644 --- a/source/blender/draw/engines/eevee/eevee_depth_of_field.c +++ b/source/blender/draw/engines/eevee/eevee_depth_of_field.c @@ -770,11 +770,11 @@ static void dof_scatter_pass_init(EEVEE_FramebufferList *fbl, DRW_shgroup_uniform_vec2_copy(grp, "bokehAnisotropy", fx->dof_bokeh_aniso); if (use_bokeh_tx) { /* Negate to flip bokeh shape. Mimics optical phenomenon. */ - negate_v2(fx->dof_bokeh_aniso); + negate_v2(fx->dof_bokeh_aniso_inv); DRW_shgroup_uniform_vec2_copy(grp, "bokehAnisotropyInv", fx->dof_bokeh_aniso_inv); DRW_shgroup_uniform_texture_ref(grp, "bokehLut", &fx->dof_bokeh_scatter_lut_tx); /* Restore. */ - negate_v2(fx->dof_bokeh_aniso); + negate_v2(fx->dof_bokeh_aniso_inv); } DRW_shgroup_call_procedural_triangles(grp, NULL, sprite_count); |