diff --git a/Vulkan/Vulkan_Sample/Vulkan/sample/distancefieldfonts/distancefieldfonts.cpp b/Vulkan/Vulkan_Sample/Vulkan/sample/distancefieldfonts/distancefieldfonts.cpp index 4bc9a14..28cc383 100644 --- a/Vulkan/Vulkan_Sample/Vulkan/sample/distancefieldfonts/distancefieldfonts.cpp +++ b/Vulkan/Vulkan_Sample/Vulkan/sample/distancefieldfonts/distancefieldfonts.cpp @@ -183,11 +183,11 @@ void DistanceFieldFonts::createGraphicsPipeline() }; VkPipelineDynamicStateCreateInfo dynamic = Tools::getPipelineDynamicStateCreateInfo(dynamicStates); - VkPipelineRasterizationStateCreateInfo rasterization = Tools::getPipelineRasterizationStateCreateInfo(VK_POLYGON_MODE_FILL, VK_CULL_MODE_BACK_BIT, VK_FRONT_FACE_COUNTER_CLOCKWISE); + VkPipelineRasterizationStateCreateInfo rasterization = Tools::getPipelineRasterizationStateCreateInfo(VK_POLYGON_MODE_FILL, VK_CULL_MODE_NONE, VK_FRONT_FACE_COUNTER_CLOCKWISE); VkPipelineMultisampleStateCreateInfo multisample = Tools::getPipelineMultisampleStateCreateInfo(VK_SAMPLE_COUNT_1_BIT); VkPipelineDepthStencilStateCreateInfo depthStencil = Tools::getPipelineDepthStencilStateCreateInfo(VK_TRUE, VK_TRUE, VK_COMPARE_OP_LESS_OR_EQUAL); - VkPipelineColorBlendAttachmentState colorBlendAttachment = Tools::getPipelineColorBlendAttachmentState(VK_FALSE, VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT | VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT); + VkPipelineColorBlendAttachmentState colorBlendAttachment = Tools::getPipelineColorBlendAttachmentState(VK_TRUE, 0xf); VkPipelineColorBlendStateCreateInfo colorBlend = Tools::getPipelineColorBlendStateCreateInfo(1, &colorBlendAttachment); std::array shaderStages; diff --git a/Vulkan/Vulkan_Sample/screenshots/43_distancefieldfonts.png b/Vulkan/Vulkan_Sample/screenshots/43_distancefieldfonts.png new file mode 100644 index 0000000..f31b9a8 Binary files /dev/null and b/Vulkan/Vulkan_Sample/screenshots/43_distancefieldfonts.png differ