Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <j.bakker@atmind.nl>2019-03-19 17:41:14 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2019-03-19 17:43:49 +0300
commite226460dd35b1439092888f280b00e7993d78f13 (patch)
tree8645c94e5980c145bf156edfaf35a3aded0632af /source/blender/draw/engines/workbench/workbench_deferred.c
parent9b8eef9d9c4a337bcdb9127bec63513dd0ee7e54 (diff)
Workbench: World Clipping For Specular Transparent
When Specular Transparent materials are used the world clipping did not work on the transparent materials. The reason was that the accum shaders did not vary on the existance of the clipping planes This patch will variate the accum shaders when clipping planes are active. Reviewed By: fclem Maniphest Tasks: T61023
Diffstat (limited to 'source/blender/draw/engines/workbench/workbench_deferred.c')
-rw-r--r--source/blender/draw/engines/workbench/workbench_deferred.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_deferred.c b/source/blender/draw/engines/workbench/workbench_deferred.c
index b4175935b7a..1fe0202da5b 100644
--- a/source/blender/draw/engines/workbench/workbench_deferred.c
+++ b/source/blender/draw/engines/workbench/workbench_deferred.c
@@ -824,7 +824,7 @@ static WORKBENCH_MaterialData *get_or_create_material_data(
DRW_shgroup_stencil_mask(material->shgrp, (ob->dtx & OB_DRAWXRAY) ? 0x00 : 0xFF);
DRW_shgroup_uniform_int(material->shgrp, "object_id", &material->object_id, 1);
workbench_material_shgroup_uniform(wpd, material->shgrp, material, ob, true, true, interp);
- if (wpd->world_clip_planes) {
+ if (WORLD_CLIPPING_ENABLED(wpd)) {
const DRWContextState *draw_ctx = DRW_context_state_get();
RegionView3D *rv3d = draw_ctx->rv3d;
DRW_shgroup_world_clip_planes_from_rv3d(material->shgrp, rv3d);