Blender Git Commit Log
Git Commits -> Revision 01cec3e
Revision 01cec3e by Clément Foucault (master) May 2, 2018, 18:49 (GMT) |
Armature: Envelope Bones: Change drawing method. We now use a more pleasant and efficient way to display enveloppe bones and their radius. For this we use a capsule geometry that is displaced (in the vertex shader) to a signed distance field that represents the bone shape. The bone distance radius are now drawn in 3D using a "pseudo-fresnel" effect. This gives a better understanding of what is inside the radius of influence. When capsules are not needed, we switch to default raytraced points. The capsules are not distorded by the bone's matrix (same as their actual influence radius) and are correctly displayed even with complex scaled parents hierarchy. |
Commit Details:
Full Hash: 01cec3e0c52184f288a9af28b67d09965ebb0b03
Parent Commit: 18071f4
Lines Changed: +248, -117
2 Added Paths:
/source/blender/draw/modes/shaders/armature_envelope_frag.glsl (+15, -0) (View)
/source/blender/draw/modes/shaders/armature_envelope_vert.glsl (+96, -0) (View)
/source/blender/draw/modes/shaders/armature_envelope_vert.glsl (+96, -0) (View)
9 Modified Paths:
/source/blender/draw/CMakeLists.txt (+2, -0) (Diff)
/source/blender/draw/intern/draw_armature.c (+70, -7) (Diff)
/source/blender/draw/intern/draw_cache.c (+45, -97) (Diff)
/source/blender/draw/intern/draw_cache.h (+0, -1) (Diff)
/source/blender/draw/intern/draw_common.c (+16, -8) (Diff)
/source/blender/draw/intern/draw_common.h (+1, -1) (Diff)
/source/blender/draw/modes/edit_armature_mode.c (+1, -1) (Diff)
/source/blender/draw/modes/object_mode.c (+1, -1) (Diff)
/source/blender/draw/modes/pose_mode.c (+1, -1) (Diff)
/source/blender/draw/intern/draw_armature.c (+70, -7) (Diff)
/source/blender/draw/intern/draw_cache.c (+45, -97) (Diff)
/source/blender/draw/intern/draw_cache.h (+0, -1) (Diff)
/source/blender/draw/intern/draw_common.c (+16, -8) (Diff)
/source/blender/draw/intern/draw_common.h (+1, -1) (Diff)
/source/blender/draw/modes/edit_armature_mode.c (+1, -1) (Diff)
/source/blender/draw/modes/object_mode.c (+1, -1) (Diff)
/source/blender/draw/modes/pose_mode.c (+1, -1) (Diff)