diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-24 14:22:13 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-24 14:37:02 +0300 |
commit | dd4a2682216c6e2380dbef3ca256e322ebaa6ab1 (patch) | |
tree | c4cb6a273ef1afa25e08444c4df466555fb38973 /source/blender/blenloader/intern | |
parent | 419434a1ad5f004313d523cf2ddce512ed8803a2 (diff) |
Viewport: add more contrast to default studio light, make it default again
It's closer to the default matcap now, but slightly less metallic and dark. The
reason to use studio lights as default is because the roughness and metallic
parameters of the material then have an effect, and because Texture color mode
does not work for matcaps.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/versioning_defaults.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index ccf96fd8a90..61434fce2ae 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -49,6 +49,7 @@ #include "BKE_node.h" #include "BKE_paint.h" #include "BKE_screen.h" +#include "BKE_studiolight.h" #include "BKE_workspace.h" #include "BLO_readfile.h" @@ -117,6 +118,9 @@ void BLO_update_defaults_userpref_blend(void) /* Increase a little for new scrubbing area. */ U.v2d_min_gridsize = 45; + + /* Default studio light. */ + BKE_studiolight_default(U.light_param, U.light_ambient); } /** @@ -329,7 +333,7 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template) /* Screen space cavity by default for faster performance. */ View3D *v3d = sa->spacedata.first; v3d->shading.cavity_type = V3D_SHADING_CAVITY_CURVATURE; - v3d->shading.light = V3D_LIGHTING_MATCAP; + v3d->shading.light = V3D_LIGHTING_STUDIO; } else if (sa->spacetype == SPACE_CLIP) { SpaceClip *sclip = sa->spacedata.first; |