diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-11-30 15:58:27 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-11-30 17:40:57 +0300 |
commit | 909fa08a7654e411b3fba90178a7003646ca7e54 (patch) | |
tree | 1e7a8cb02edac7e4c96a0cd08eb265b696247127 /source/blender/draw | |
parent | 856b858f88052371f231c69c182e6169101f9b39 (diff) |
StudioLight: Add a 4th light to adjust lighting
There was a bug due to non-aligned struct in the DNA that prevented us
to increase the size of the userdef light array.
Since the studio lights are now presets and stored in external files,
there is no need to keep backward compatibility with theses lights.
Remove the old array and create a new one.
Add blue tint light for specular.
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/workbench/workbench_studiolight.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_studiolight.c b/source/blender/draw/engines/workbench/workbench_studiolight.c index 7b348cfd8ec..63fc096ab0f 100644 --- a/source/blender/draw/engines/workbench/workbench_studiolight.c +++ b/source/blender/draw/engines/workbench/workbench_studiolight.c @@ -54,13 +54,6 @@ void studiolight_update_world(WORKBENCH_PrivateData *wpd, StudioLight *studiolig /* Studio Lights. */ for (int i = 0; i < 4; i++) { WORKBENCH_UBO_Light *light = &wd->lights[i]; - /* TODO use 4 lights in studiolights prefs. */ - if (i > 2) { - copy_v3_fl3(light->light_direction, 1.0f, 0.0f, 0.0f); - copy_v3_fl(light->specular_color, 0.0f); - copy_v3_fl(light->diffuse_color, 0.0f); - continue; - } SolidLight *sl = &studiolight->light[i]; if (sl->flag) { |