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
This commit is contained in:
2020-02-19 01:44:52 +01:00
parent 77619f5274
commit e82827bf6e
6 changed files with 216 additions and 14 deletions

View File

@@ -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);