Skip to content
Snippets Groups Projects
Commit 89af6663 authored by Alexander Gauggel's avatar Alexander Gauggel
Browse files

[#82] Fix sky artifacts

parent ae0450b3
No related branches found
No related tags found
1 merge request!70Resolve "Voxel cone tracing"
Pipeline #26027 passed
......@@ -118,7 +118,7 @@ int main(int argc, const char** argv) {
const vk::Format depthBufferFormat = vk::Format::eD32Sfloat;
const vkcv::AttachmentDescription depth_attachment(
vkcv::AttachmentOperation::DONT_CARE,
vkcv::AttachmentOperation::STORE,
vkcv::AttachmentOperation::LOAD,
depthBufferFormat
);
......@@ -334,8 +334,8 @@ int main(int argc, const char** argv) {
skyPipeConfig.m_VertexLayout = vkcv::VertexLayout();
skyPipeConfig.m_DescriptorLayouts = {};
skyPipeConfig.m_UseDynamicViewport = true;
skyPipeConfig.m_multisampling = msaa;
skyPipeConfig.m_depthWrite = false;
skyPipeConfig.m_multisampling = msaa;
skyPipeConfig.m_depthWrite = false;
vkcv::PipelineHandle skyPipe = core.createGraphicsPipeline(skyPipeConfig);
......@@ -576,6 +576,8 @@ int main(int argc, const char** argv) {
prepassDrawcalls,
prepassRenderTargets);
core.recordImageMemoryBarrier(cmdStream, depthBuffer);
// main pass
std::vector<std::array<glm::mat4, 2>> mainPassMatrices;
for (const auto& m : modelMatrices) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment