[Bf-blender-cvs] [b4dfe00fd60] blender2.8: Wireframe: Extend Xray slider range
Clément Foucault
noreply at git.blender.org
Mon Nov 5 16:31:26 CET 2018
Commit: b4dfe00fd60232e9e79cf1a28e50bb91625d2b55
Author: Clément Foucault
Date: Mon Nov 5 16:30:22 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBb4dfe00fd60232e9e79cf1a28e50bb91625d2b55
Wireframe: Extend Xray slider range
This makes it possible to bypass the depth dithering effect at the cost
of less accurate depth perception.
===================================================================
M source/blender/draw/engines/workbench/workbench_forward.c
===================================================================
diff --git a/source/blender/draw/engines/workbench/workbench_forward.c b/source/blender/draw/engines/workbench/workbench_forward.c
index 09d9a068b7d..9991c30ea8e 100644
--- a/source/blender/draw/engines/workbench/workbench_forward.c
+++ b/source/blender/draw/engines/workbench/workbench_forward.c
@@ -372,7 +372,7 @@ void workbench_forward_engine_init(WORKBENCH_Data *vedata)
}
if (wpd->shading.flag & XRAY_FLAG(wpd)) {
- blend_threshold = 0.75f - XRAY_ALPHA(wpd) * 0.5f;
+ blend_threshold = 1.0f - XRAY_ALPHA(wpd) * 0.9f;
}
if (wpd->shading.type == OB_WIRE) {
More information about the Bf-blender-cvs
mailing list