Blender Git Commit Log
Git Commits -> Revision 3b13277
Revision 3b13277 by Sergey Sharybin (master) February 22, 2019, 16:02 (GMT) |
Multires: Support smooth shading when sculpting On CCG side it is done similar to displacement, where we have a dedicated functor which evaluates displacement. Might be seemed as an overkill, but allows to decouple SubdivCCG from mesh entirely, and maybe even free up coarse mesh in order to save some memory. Some weak-looking aspect is the call to update normals from the draw manager. Ideally, the manager will only draw what is already evaluated. But it's a bit tricky to find a best place for this since we avoid dependency graph updates during sculpt as much as possible. The new code mimics the old code, this is how it was in 2.7. Fix shading part of T58307. |
Commit Details:
Full Hash: 3b132778deaac733baa78653685471e344b6b7c8
Parent Commit: b6c6194
Lines Changed: +262, -33
1 Added Path:
/source/blender/blenkernel/intern/subdiv_ccg_material.c (+67, -0) (View)
6 Modified Paths:
/source/blender/blenkernel/BKE_subdiv.h (+2, -3) (Diff)
/source/blender/blenkernel/BKE_subdiv_ccg.h (+34, -6) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+1, -0) (Diff)
/source/blender/blenkernel/intern/subdiv_ccg.c (+131, -17) (Diff)
/source/blender/blenkernel/intern/subdiv_ccg_mask.c (+8, -7) (Diff)
/source/blender/draw/modes/sculpt_mode.c (+19, -0) (Diff)
/source/blender/blenkernel/BKE_subdiv_ccg.h (+34, -6) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+1, -0) (Diff)
/source/blender/blenkernel/intern/subdiv_ccg.c (+131, -17) (Diff)
/source/blender/blenkernel/intern/subdiv_ccg_mask.c (+8, -7) (Diff)
/source/blender/draw/modes/sculpt_mode.c (+19, -0) (Diff)