Fix bloom effect in hdr example

This commit is contained in:
Brad Davis 2018-04-18 09:39:30 -07:00
parent 983c5d95da
commit 6b494d6098

View file

@ -843,12 +843,12 @@ public:
VK_CHECK_RESULT(vkCreateGraphicsPipelines(device, pipelineCache, 1, &pipelineCreateInfo, nullptr, &pipelines.bloom[0])); VK_CHECK_RESULT(vkCreateGraphicsPipelines(device, pipelineCache, 1, &pipelineCreateInfo, nullptr, &pipelines.bloom[0]));
// Second blur pass (into separate framebuffer) // Second blur pass (into separate framebuffer)
rasterizationState.cullMode = VK_CULL_MODE_BACK_BIT;
pipelineCreateInfo.renderPass = filterPass.renderPass; pipelineCreateInfo.renderPass = filterPass.renderPass;
dir = 0; dir = 0;
VK_CHECK_RESULT(vkCreateGraphicsPipelines(device, pipelineCache, 1, &pipelineCreateInfo, nullptr, &pipelines.bloom[1])); VK_CHECK_RESULT(vkCreateGraphicsPipelines(device, pipelineCache, 1, &pipelineCreateInfo, nullptr, &pipelines.bloom[1]));
// Object rendering pipelines // Object rendering pipelines
rasterizationState.cullMode = VK_CULL_MODE_BACK_BIT;
// Vertex bindings an attributes for model rendering // Vertex bindings an attributes for model rendering
// Binding description // Binding description