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-03-02 02:58:40 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2022-03-02 02:58:40 +0300
commit4932269ec3fafb011f9f6973f4d9d61e3558369f (patch)
tree1926a11b1f8bd70c5c7c26f20e180e9acf592b96 /source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_weights.cc
parenta75e9863fef9a3f1f9495d66a21c85a7cc73367c (diff)
Fix T94952: normals maps don't render correctly with GPU subdivision
A simple case of missing the tangent VBO. The tangents are computed from the coarse mesh, and interpolated on the GPU for the final mesh. Code for initializing the tangents, and the vertex format for the VBO was factored out of the coarse extraction routine, to be shared with the subdivision routine.
Diffstat (limited to 'source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_weights.cc')
-rw-r--r--source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_weights.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_weights.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_weights.cc
index bb608014c53..b5727367412 100644
--- a/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_weights.cc
+++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_vbo_weights.cc
@@ -201,7 +201,7 @@ static void extract_weights_init_subdiv(const DRWSubdivCache *subdiv_cache,
}
}
- draw_subdiv_interp_custom_data(subdiv_cache, coarse_weights, vbo, 1, 0);
+ draw_subdiv_interp_custom_data(subdiv_cache, coarse_weights, vbo, 1, 0, false);
GPU_vertbuf_discard(coarse_weights);
}