diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2018-05-23 11:53:10 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2018-05-23 11:54:22 +0300 |
commit | 8d928732301310998a1a13a11460594af1e08a0d (patch) | |
tree | 2ee2a4ef697ece3bc92422d52cb3f8516900580c /source/blender/draw/engines/workbench/workbench_data.c | |
parent | e92baab34893f5a5b3d6f59238fdb7855b72d7fe (diff) |
Workbench: See through
Unmultiplied the final color during compositing. Same as the revealage
buffer would do
Also use the DRW_STATE_ADDITION_FULL as it is aware of premultiplied
colors
Diffstat (limited to 'source/blender/draw/engines/workbench/workbench_data.c')
-rw-r--r-- | source/blender/draw/engines/workbench/workbench_data.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_data.c b/source/blender/draw/engines/workbench/workbench_data.c index c3671fa37b1..9f8023b38aa 100644 --- a/source/blender/draw/engines/workbench/workbench_data.c +++ b/source/blender/draw/engines/workbench/workbench_data.c @@ -20,7 +20,6 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd) copy_v3_fl(wpd->shading.single_color, 0.8f); wpd->drawtype = OB_SOLID; wpd->studio_light = BKE_studiolight_findindex(0); - wpd->shading.see_through_transparency = 0.3f; } wpd->shadow_multiplier = 1.0 - wpd->shading.shadow_intensity; @@ -35,7 +34,6 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd) studiolight_update_world(wpd->studio_light, wd); - wd->see_through_transparency = wpd->shading.see_through_transparency; copy_v3_v3(wd->object_outline_color, wpd->shading.object_outline_color); wd->object_outline_color[3] = 1.0f; |