Blender Git Commit Log

Git Commits -> Revision 337aab5

Revision 337aab5 by Clément Foucault (master)
June 9, 2018, 10:41 (GMT)
Workbench: Matcaps: Fix matcap under perspective.

This fixes the problem that matcaps have when using a very larg FOV in
perspective view.

This was because it was stupidly using the normal direction which can not
aligned with the view vector under perspective.

So to workaround this problem we don't use the normal as is, but compute
how much it's facing the camera.

This changes how matcaps looks in perspective because they now always use
the full range of the matcap (which is expected).

Commit Details:

Full Hash: 337aab59e97412e45f331cd8ec035dd54d87c71c
Parent Commit: a1b42b7
Lines Changed: +19, -6

3 Modified Paths:

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