看起来似乎完全正确的DEPTH TEST/MASK

This commit is contained in:
2019-07-12 01:57:18 +08:00
parent f3a8028e7c
commit fc67299042
6 changed files with 10 additions and 36 deletions

View File

@@ -169,7 +169,7 @@ private:
const VkFormat position_format =FMT_RGBA16F;
const VkFormat color_format =FMT_RGBA16F;
const VkFormat normal_format =FMT_RGBA16F;
const VkFormat depth_format =FMT_D16UN;
const VkFormat depth_format =FMT_D32F;
gbuffer.position=device->CreateAttachmentTextureColor(position_format, gbuffer.extent.width,gbuffer.extent.height);
gbuffer.color =device->CreateAttachmentTextureColor(color_format, gbuffer.extent.width,gbuffer.extent.height);