Add Image rendering support for ImGui

- Fix alpha channel bug being set to 0
This commit is contained in:
Thraix
2023-07-13 21:17:42 +02:00
parent cb120ef731
commit f9fb74ba6a
7 changed files with 83 additions and 34 deletions
@@ -216,7 +216,7 @@ namespace Copium
colorBlendAttachment.dstColorBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA;
colorBlendAttachment.colorBlendOp = VK_BLEND_OP_ADD;
colorBlendAttachment.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
colorBlendAttachment.dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO;
colorBlendAttachment.dstAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
colorBlendAttachment.alphaBlendOp = VK_BLEND_OP_ADD;
VkPipelineColorBlendStateCreateInfo colorBlendCreateInfo{};