diff options
author | Antonioya <blendergit@gmail.com> | 2019-06-12 18:15:50 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-06-13 14:33:04 +0300 |
commit | e0c98e18f9e808e3a5fffe191ac091343aa4887c (patch) | |
tree | 691df969e4572068dbf54b82c761ea107038ac13 /source/blender/draw/engines/gpencil/gpencil_engine.c | |
parent | 36faf739a71624b6ca10cec7233779f9eeace0bd (diff) |
GPencil: Remove blend_opacity from shader
The opacity was already used and using it in the shader only duplicate the blend.
Diffstat (limited to 'source/blender/draw/engines/gpencil/gpencil_engine.c')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_engine.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c index 62b893867f3..233e2ee2deb 100644 --- a/source/blender/draw/engines/gpencil/gpencil_engine.c +++ b/source/blender/draw/engines/gpencil/gpencil_engine.c @@ -535,7 +535,6 @@ void GPENCIL_cache_init(void *vedata) DRW_shgroup_uniform_texture_ref(blend_shgrp, "blendDepth", &e_data.temp_depth_tx_fx); DRW_shgroup_uniform_int(blend_shgrp, "mode", &stl->storage->blend_mode, 1); DRW_shgroup_uniform_int(blend_shgrp, "clamp_layer", &stl->storage->clamp_layer, 1); - DRW_shgroup_uniform_float(blend_shgrp, "blend_opacity", &stl->storage->blend_opacity, 1); DRW_shgroup_uniform_int(mix_shgrp, "tonemapping", &stl->storage->tonemapping, 1); /* create effects passes */ @@ -975,7 +974,6 @@ void GPENCIL_draw_scene(void *ved) GPU_framebuffer_clear_color_depth(fbl->temp_fb_b, clearcol, 1.0f); stl->storage->blend_mode = array_elm->mode; stl->storage->clamp_layer = (int)array_elm->clamp_layer; - stl->storage->blend_opacity = array_elm->blend_opacity; stl->storage->tonemapping = DRW_state_do_color_management() ? 0 : 1; DRW_draw_pass(psl->blend_pass); stl->storage->tonemapping = 0; |