diff options
author | quou <quou@disroot.org> | 2024-12-29 22:41:55 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-29 22:41:55 +1100 |
commit | 80b8a59afce450a87af7ca4082529d899b639779 (patch) | |
tree | 2204e24aff7665ca53b1f4ffca82ce7e0493a771 /ui.cpp | |
parent | 4123d42aee69537f6fcede748a5d7b88277ef4af (diff) |
alpha blending
Diffstat (limited to 'ui.cpp')
-rw-r--r-- | ui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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(); |