Blender Git Commit Log

Git Commits -> Revision 20b0194

Revision 20b0194 by Clément Foucault (master)
June 10, 2018, 18:02 (GMT)
Workbench: Xray: Make dithered depth dependant on alpha.

The range is 0.25 to 0.75 opacity when the Xray opacity is between 0.0 to 1.0.

This is to avoid loosing completely the sense of occlusion when having no
other solid drawing than the wireframe and loosing the transparency when
xray alpha is at 1.0.

Also replace Bayer (checkerboard) method by interlieved gradient noise to
minimize the chance to loose an occluded line completely.

Other noise function could be tested in the future.

Commit Details:

Full Hash: 20b0194cd3f33f613bba6923e3ca6fbf16838c55
Parent Commit: 542462d
Lines Changed: +31, -3

2 Modified Paths:

/source/blender/draw/engines/workbench/shaders/workbench_checkerboard_depth_frag.glsl (+30, -3) (Diff)
/source/blender/draw/engines/workbench/workbench_forward.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021