[vulkan] Enable alpha blend for the compose step

Now the text looks good when over the player model.
This commit is contained in:
Bill Currie 2023-06-23 02:12:33 +09:00
parent a2a237b854
commit 54712be41b

View file

@ -124,6 +124,16 @@ properties = {
alphaBlendOp = add;
colorWriteMask = r|g|b|a;
};
alpha_blend = {
blendEnable = true;
srcColorBlendFactor = one;
dstColorBlendFactor = one_minus_src_alpha;
colorBlendOp = add;
srcAlphaBlendFactor = one;
dstAlphaBlendFactor = one_minus_src_alpha;
alphaBlendOp = add;
colorWriteMask = r|g|b|a;
};
pipeline_base = {
viewport = {
viewports = (
@ -1331,7 +1341,10 @@ renderpasses = {
color = "[ 0, 0.5, 0.5, 1]";
attachments = {
color = {
output = color_attachment_optimal;
output = {
layout = color_attachment_optimal;
blend = $alpha_blend;
};
};
};
pipelines = {