From 80b8a59afce450a87af7ca4082529d899b639779 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 29 Dec 2024 22:41:55 +1100 Subject: alpha blending --- ui.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui.cpp') diff --git a/ui.cpp b/ui.cpp index 8264576..f6caedd 100644 --- a/ui.cpp +++ b/ui.cpp @@ -272,6 +272,11 @@ void UI::render(Arena* s, Texture_Id target) { pb.begin(); pb.shader(shader); pb.vertex_format(vertex_format); + pb.blend( + Blend_Mode::add, + Blend_Factor::src_alpha, + Blend_Factor::inv_src_colour + ); pb.cbuffer(shader_info.config_binding, config_buf); pb.texture(shader_info.atlas_binding, atlas, sampler); Pipeline& pip = pb.build(); -- cgit v1.2.3-54-g00ecf