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-29 13:00:33 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2022-03-29 13:04:51 +0300
commit2aa49107a2fb8e5bd68675a1fab245cb742f0b07 (patch)
tree7cf7731d9f7fc87b51021baaa88bca49a2afc620 /source/blender/draw/intern/draw_subdivision.h
parent17757eabc7d04f4619723a83ebfae15d3c14277f (diff)
Fix T96356: artefacts with GPU subdivision and vertex paint mask
The lines paint mask IBO extraction was not implemented for GPU subdivision. For it to work, we also now need to preserve the subdivision loop to subdivision edge map, which until now was overwritten to store coarse edges (the map to coarse edges is still preserved). Also the paint flag stored in the 4th dimension of the loop normal buffer was not properly set for flat shaded faces, leading to other kind of artefacts and render issues.
Diffstat (limited to 'source/blender/draw/intern/draw_subdivision.h')
-rw-r--r--source/blender/draw/intern/draw_subdivision.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_subdivision.h b/source/blender/draw/intern/draw_subdivision.h
index 41d177a644a..8d7bc3dc495 100644
--- a/source/blender/draw/intern/draw_subdivision.h
+++ b/source/blender/draw/intern/draw_subdivision.h
@@ -130,6 +130,8 @@ typedef struct DRWSubdivCache {
/* Maps subdivision loop to subdivided vertex index. */
int *subdiv_loop_subdiv_vert_index;
+ /* Maps subdivision loop to subdivided edge index. */
+ int *subdiv_loop_subdiv_edge_index;
/* Maps subdivision loop to original coarse poly index. */
int *subdiv_loop_poly_index;