diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-11-30 15:26:30 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-11-30 17:40:57 +0300 |
commit | e68c0bf76a4ccb16f51b7caf488c2f345552eea9 (patch) | |
tree | fc5ec8d69b1f33445f2b8aff0639384bcb4ae758 /source/blender/blenkernel/intern/scene.c | |
parent | dabd6615cc0ecbb82f52415e81c734ad041f7598 (diff) |
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).
Diffstat (limited to 'source/blender/blenkernel/intern/scene.c')
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index 090c016ed00..7a6f1ec85b4 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -858,8 +858,9 @@ void BKE_scene_init(Scene *sce) BKE_view_layer_add(sce, "View Layer"); /* SceneDisplay */ - copy_v3_v3(sce->display.light_direction, (float[3]){-M_SQRT1_3, -M_SQRT1_3, M_SQRT1_3}); - sce->display.shadow_shift = 0.1; + copy_v3_v3(sce->display.light_direction, (float[3]){M_SQRT1_3, M_SQRT1_3, M_SQRT1_3}); + sce->display.shadow_shift = 0.1f; + sce->display.shadow_focus = 0.0f; sce->display.matcap_ssao_distance = 0.2f; sce->display.matcap_ssao_attenuation = 1.0f; |