diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-05-08 13:05:06 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-05-08 13:18:35 +0300 |
commit | 9a79178c2eb79e724077d38cd2dd964d0b6ca0ea (patch) | |
tree | 0af8bc089ad3b7b5f978d700af29503358d21890 /source/blender/windowmanager/wm_event_system.h | |
parent | d8706f54074675f8af83471398d35def0b351484 (diff) |
Armature: Add back Stick bone draw type.
The actual code is a bit convoluted but allows good and "pseudo efficient"
drawing. (pseudo efficient because rendering instances with that amount of
vertices is really inneficient. We should go full procedural but need to
have bufferTexture implemented first) But drawing speed is not a bottleneck
here and it's already a million time less crappy than the old (2.79) immediate
mode method.
Instead of drawing actual wires with different width we render a triangle
fan batch (containing 3 fans: bone, head, tail) which is then oriented in
screen space to the bone direction. We then interpolate a float value
accross vertices giving us a nice blend factor to blend the colors and
gives us really smooth interpolation inside the bone.
The outside edge still being geometry will be antialiased by MSAA if enabled.
Diffstat (limited to 'source/blender/windowmanager/wm_event_system.h')
0 files changed, 0 insertions, 0 deletions