Fix: Overlay-Next: Armature custom shapes have no anti-aliasing

Blend state was incorrect for shape wires.
This commit is contained in:
Clément Foucault
2024-11-20 16:58:59 +01:00
parent b6ba86d3e2
commit 2b72bc142c

View File

@@ -282,7 +282,7 @@ class Armatures {
{
auto &sub = armature_ps_.sub("opaque.shape_wire");
sub.state_set(default_state, state.clipping_plane_count);
sub.state_set(default_state | DRW_STATE_BLEND_ALPHA, state.clipping_plane_count);
sub.shader_set(res.shaders.armature_shape_wire.get());
sub.bind_ubo("globalsBlock", &res.globals_buf);
sub.push_constant("alpha", 1.0f);