From e68c0bf76a4ccb16f51b7caf488c2f345552eea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Fri, 30 Nov 2018 13:26:30 +0100 Subject: Workbench: Add Shadow Focus and change Shadow Orientation Shadow focus let the user choose how hard are is the shadows transition. Harder shadow transition can be used for stylistic effects or more uniform shading. Make shadow orientation respect the same orientation as the studio light (view from +Y direction aka. front view). Make the default shadow direction more similar to the default light position (the default light object, not the default studio lighting). --- source/blender/makesdna/DNA_scene_types.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/makesdna/DNA_scene_types.h') diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index 6cc689378ea..1b31e45b30e 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -1441,13 +1441,12 @@ typedef struct DisplaySafeAreas { /* Scene Display - used for store scene specific display settings for the 3d view */ typedef struct SceneDisplay { float light_direction[3]; /* light direction for shadows/highlight */ - float shadow_shift; + float shadow_shift, shadow_focus; /* Settings for Cavity Shader */ float matcap_ssao_distance; float matcap_ssao_attenuation; int matcap_ssao_samples; - int pad; /* OpenGL render engine settings. */ View3DShading shading; -- cgit v1.2.3