diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-04-14 04:49:44 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-04-14 04:49:44 +0300 |
commit | f84f9eb8ed439e5d3409f15109bdb67cd87b7fcf (patch) | |
tree | 9dd719c2afce75c7cfd11f31b34b9983818fe856 /source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_tan.cc | |
parent | 3e25561d5184ad3d52cdaf6e16926cf85c2fa705 (diff) |
Fix T96563: tangents artifacts with GPU subdivision
When tangent are computed from generated coordinates, the result for GPU
subdivision would be compressed to 16-bit when it shouldn't.
Diffstat (limited to 'source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_tan.cc')
-rw-r--r-- | source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_tan.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_tan.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_tan.cc index 225d1676151..25f78d68914 100644 --- a/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_tan.cc +++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_tan.cc @@ -317,7 +317,7 @@ static void extract_tan_init_subdiv(const DRWSubdivCache *subdiv_cache, GPU_vertbuf_tag_dirty(coarse_vbo); /* Include stride in offset. */ const int dst_offset = (int)subdiv_cache->num_subdiv_loops * 4 * pack_layer_index++; - draw_subdiv_interp_custom_data(subdiv_cache, coarse_vbo, dst_buffer, 4, dst_offset, true); + draw_subdiv_interp_custom_data(subdiv_cache, coarse_vbo, dst_buffer, 4, dst_offset, false); } CustomData_free(&loop_data, mr->loop_len); |