mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[vulkan] Enable alpha blend for the compose step
Now the text looks good when over the player model.
This commit is contained in:
parent
a2a237b854
commit
54712be41b
1 changed files with 14 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue