From 8a82b057465fa470fae4b41808101ded5825f4d9 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Wed, 13 May 2026 13:42:43 +0200 Subject: [PATCH] fix blending --- kvf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kvf.h b/kvf.h index 0af50cf..0eef858 100755 --- a/kvf.h +++ b/kvf.h @@ -3176,7 +3176,7 @@ void kvfGPipelineBuilderEnableAdditiveBlending(KvfGraphicsPipelineBuilder* build builder->color_blend_attachment_state.dstColorBlendFactor = VK_BLEND_FACTOR_ONE; builder->color_blend_attachment_state.colorBlendOp = VK_BLEND_OP_ADD; builder->color_blend_attachment_state.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE; - builder->color_blend_attachment_state.dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO; + builder->color_blend_attachment_state.dstAlphaBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA; builder->color_blend_attachment_state.alphaBlendOp = VK_BLEND_OP_ADD; } @@ -3189,7 +3189,7 @@ void kvfGPipelineBuilderEnableAlphaBlending(KvfGraphicsPipelineBuilder* builder) builder->color_blend_attachment_state.dstColorBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA; builder->color_blend_attachment_state.colorBlendOp = VK_BLEND_OP_ADD; builder->color_blend_attachment_state.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE; - builder->color_blend_attachment_state.dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO; + builder->color_blend_attachment_state.dstAlphaBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA; builder->color_blend_attachment_state.alphaBlendOp = VK_BLEND_OP_ADD; }