Skip to content

Commit c099e66

Browse files
committed
Fix broken blending for forward pass
Fixes #1237
1 parent 00444a6 commit c099e66

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/subpasses/subpasses.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,8 @@ class VulkanExample : public VulkanExampleBase
590590
blendAttachmentState.dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO;
591591
blendAttachmentState.alphaBlendOp = VK_BLEND_OP_ADD;
592592
blendAttachmentState.colorWriteMask = VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT | VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT;
593+
colorBlendState.attachmentCount = 1;
594+
colorBlendState.pAttachments = &blendAttachmentState;
593595
pipelineCI.pVertexInputState = vkglTF::Vertex::getPipelineVertexInputState({ vkglTF::VertexComponent::Position, vkglTF::VertexComponent::Color, vkglTF::VertexComponent::Normal, vkglTF::VertexComponent::UV });
594596
pipelineCI.layout = pipelineLayouts.transparent;
595597
// Used in second subpass

0 commit comments

Comments
 (0)