summaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-29 22:41:55 +1100
committerquou <quou@disroot.org>2024-12-29 22:41:55 +1100
commit80b8a59afce450a87af7ca4082529d899b639779 (patch)
tree2204e24aff7665ca53b1f4ffca82ce7e0493a771 /ui.cpp
parent4123d42aee69537f6fcede748a5d7b88277ef4af (diff)
alpha blending
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp5
1 files changed, 5 insertions, 0 deletions
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();