-
- Downloads
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.
Showing
- source/blender/draw/intern/draw_cache_extract_mesh.cc 1 addition, 0 deletionssource/blender/draw/intern/draw_cache_extract_mesh.cc
- source/blender/draw/intern/draw_cache_impl_subdivision.cc 13 additions, 5 deletionssource/blender/draw/intern/draw_cache_impl_subdivision.cc
- source/blender/draw/intern/draw_subdivision.h 2 additions, 0 deletionssource/blender/draw/intern/draw_subdivision.h
- source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_paint_mask.cc 77 additions, 0 deletions...tern/mesh_extractors/extract_mesh_ibo_lines_paint_mask.cc
- source/blender/draw/intern/shaders/common_subdiv_lib.glsl 14 additions, 0 deletionssource/blender/draw/intern/shaders/common_subdiv_lib.glsl
- source/blender/draw/intern/shaders/common_subdiv_vbo_lnor_comp.glsl 19 additions, 3 deletions...nder/draw/intern/shaders/common_subdiv_vbo_lnor_comp.glsl
Loading
Please register or sign in to comment