diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-04-29 20:39:44 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-05-02 21:49:38 +0300 |
commit | 01cec3e0c52184f288a9af28b67d09965ebb0b03 (patch) | |
tree | dcf6256b52104d14ac16a3b1f242c270a88dbfc2 /source/blender/draw/intern/draw_cache.h | |
parent | 18071f4e0eee407f9a05a0e56f3f46b715d82b09 (diff) |
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.
Diffstat (limited to 'source/blender/draw/intern/draw_cache.h')
-rw-r--r-- | source/blender/draw/intern/draw_cache.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache.h b/source/blender/draw/intern/draw_cache.h index b56f2c0218b..b2270ba57c7 100644 --- a/source/blender/draw/intern/draw_cache.h +++ b/source/blender/draw/intern/draw_cache.h @@ -101,7 +101,6 @@ struct Gwn_Batch *DRW_cache_bone_box_get(void); struct Gwn_Batch *DRW_cache_bone_box_wire_outline_get(void); struct Gwn_Batch *DRW_cache_bone_wire_wire_outline_get(void); struct Gwn_Batch *DRW_cache_bone_envelope_solid_get(void); -struct Gwn_Batch *DRW_cache_bone_envelope_distance_outline_get(void); struct Gwn_Batch *DRW_cache_bone_envelope_wire_outline_get(void); struct Gwn_Batch *DRW_cache_bone_envelope_head_wire_outline_get(void); struct Gwn_Batch *DRW_cache_bone_point_get(void); |