Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2022-04-14 04:49:44 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2022-04-14 04:49:44 +0300
commitf84f9eb8ed439e5d3409f15109bdb67cd87b7fcf (patch)
tree9dd719c2afce75c7cfd11f31b34b9983818fe856 /source/blender/draw/intern
parent3e25561d5184ad3d52cdaf6e16926cf85c2fa705 (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')
-rw-r--r--source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_tan.cc2
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);