diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-02-19 03:44:52 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-02-19 03:57:06 +0300 |
commit | e82827bf6ed54a1d1552ac9176df9e309b4d29e2 (patch) | |
tree | 10b10084cc42f21d77ed7aca8cf0f424bc37c58f /source/blender/draw/intern/draw_cache_impl_mesh.c | |
parent | 77619f527403608a349b3037d18f71893d4484d1 (diff) |
DRW: New High Quality Normal & Tangent extract
This patch adds a dedicated path to extract 16bit normals instead of packing them into 10bits/comp.
The tangents are also packed to 10bits/comp if not using the new High Quality Normal option.
Fix T61024 Degraded texture shading on dense meshes
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D6614
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_mesh.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c index 5b273159cdf..2e423c4dfe2 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -1341,6 +1341,7 @@ void DRW_mesh_batch_cache_create_requested( true, false, &cache->cd_used, + scene, ts, true); } @@ -1355,6 +1356,7 @@ void DRW_mesh_batch_cache_create_requested( false, use_subsurf_fdots, &cache->cd_used, + scene, ts, true); } @@ -1368,6 +1370,7 @@ void DRW_mesh_batch_cache_create_requested( false, use_subsurf_fdots, &cache->cd_used, + scene, ts, use_hide); |