From b7afcdff7b068f668a3bfb032cf659693c8879f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 13 Oct 2020 16:55:19 +0200 Subject: EEVEE: Motion Blur: Add shutter position option This makes it easier to generate motion trail effect with EEVEE. This just mimics the cycles option as described here: https://docs.blender.org/manual/en/latest/render/cycles/render_settings/motion_blur.html This fix T80070 --- source/blender/makesdna/DNA_scene_types.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index b4356ddebb7..0b63a085ee6 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -1635,8 +1635,10 @@ typedef struct SceneEEVEE { int motion_blur_samples DNA_DEPRECATED; int motion_blur_max; int motion_blur_steps; + int motion_blur_position; float motion_blur_shutter; float motion_blur_depth_scale; + char _pad0[4]; int shadow_method DNA_DEPRECATED; int shadow_cube_size; @@ -2405,6 +2407,13 @@ enum { /* SHADOW_METHOD_MAX = 3, */ /* UNUSED */ }; +/* SceneEEVEE->motion_blur_position */ +enum { + SCE_EEVEE_MB_CENTER = 0, + SCE_EEVEE_MB_START = 1, + SCE_EEVEE_MB_END = 2, +}; + /* SceneDisplay->render_aa, SceneDisplay->viewport_aa */ enum { SCE_DISPLAY_AA_OFF = 0, -- cgit v1.2.3