summaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
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();