Blender Git Commit Log
Git Commits -> Revision 3da46a8
Revision 3da46a8 by Jeroen Bakker (master) September 27, 2018, 14:33 (GMT) |
Implement a new dedicated weight painting shader. Move the weight paint drawing to the fragment shader. The shader uses a texture that uses the U.coba_weight custom color band, or an internal color band. In addition to actual weights, the shader has to display two alert colors: missing vertex group, and zero weight. The zero weight alert has to be blended with regular weight colors, so that a single alert vertex surrounded by weighted ones is still visible. Reviewers: campbellbarton, fclem Differential Revision: https://developer.blender.org/D3675 |
Commit Details:
Full Hash: 3da46a8d8df26d6fe5b9289ae7ebfe01f1deeda8
Parent Commit: 6791d95
Committed By: Alexander Gavrilov
Lines Changed: +147, -82
2 Added Paths:
/source/blender/draw/modes/shaders/paint_weight_frag.glsl (+29, -0) (View)
/source/blender/draw/modes/shaders/paint_weight_vert.glsl (+15, -0) (View)
/source/blender/draw/modes/shaders/paint_weight_vert.glsl (+15, -0) (View)
7 Modified Paths:
/source/blender/draw/CMakeLists.txt (+2, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+28, -81) (Diff)
/source/blender/draw/intern/draw_common.c (+56, -0) (Diff)
/source/blender/draw/intern/draw_common.h (+2, -0) (Diff)
/source/blender/draw/intern/draw_manager.c (+2, -0) (Diff)
/source/blender/draw/modes/paint_weight_mode.c (+11, -1) (Diff)
/source/blender/draw/modes/shaders/common_globals_lib.glsl (+2, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+28, -81) (Diff)
/source/blender/draw/intern/draw_common.c (+56, -0) (Diff)
/source/blender/draw/intern/draw_common.h (+2, -0) (Diff)
/source/blender/draw/intern/draw_manager.c (+2, -0) (Diff)
/source/blender/draw/modes/paint_weight_mode.c (+11, -1) (Diff)
/source/blender/draw/modes/shaders/common_globals_lib.glsl (+2, -0) (Diff)